Function at 0x547dab
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x64]
xor eax, eax
push ebp
push esi
mov esi, dword [esp + 0x68]
mov dword [esp + 0x10], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], eax
mov ebp, dword [esi]
add ebp, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], eax
mov al, byte [ebp]
and al, 0xf
push edi
mov edi, dword [esp + 0x64]
cmp al, 0xc
je 0x547e3a
lea eax, [esp + 0x14]
push eax
push ebx
push esi
call fcn.00549f89
mov esi, eax
lea eax, [esp + 0x20]
add esi, dword [esp + 0x20]
and dword [esp + 0x20], 0
push eax
push dword [esp + 0x78]
push edi
call fcn.00549f89
mov ecx, eax
mov eax, dword [esp + 0x2c]
push esi
push ebp
add eax, ecx
push eax
push dword [esp + 0x8c]
push edi
call fcn.00546c93
add esp, 0x2c
xor eax, eax
cmp byte [edi + 0x23], al
push 3
pop ecx
cmovne eax, ecx
jmp 0x5481df
mov eax, dword [edi]
mov ebp, dword [esp + 0x68]
mov al, byte [eax + ebp]
and al, 0xf
cmp al, 0xc
je 0x547e75
lea eax, [esp + 0x14]
push eax
push ebp
push edi
call fcn.00549f89
push 0
push 0
push dword [esp + 0x28]
add eax, ebp
push eax
push edi
call fcn.00546c93
mov ecx, dword [edi]
add esp, 0x20
mov al, byte [ecx + ebp]
and al, 0xfc
or al, 0xc
mov byte [ecx + ebp], al
lea eax, [esp + 0x14]
push eax
push ebx
push esi
call fcn.00549f89
add esp, 0xc
test eax, eax
je 0x5481dc
add ebx, eax
mov eax, dword [esp + 0x14]
add eax, ebx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
push ebp
push edi
call fcn.00549f89
add esp, 0xc
test eax, eax
je 0x5481d7
lea ecx, [eax + ebp]
mov eax, dword [esp + 0x14]
add eax, ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
jmp 0x5481b5
mov eax, dword [esi]
mov dword [esp + 0x34], ebx
mov al, byte [ebx + eax]
and al, 0xf
mov byte [esp + 0x13], al
cmp al, 7
jb 0x5481dc
cmp al, 0xa
ja 0x5481dc
lea eax, [esp + 0x14]
push eax
push ebx
push esi
call fcn.00549f89
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
je 0x5481dc
add eax, dword [esp + 0x14]
add ebx, eax
mov dword [esp + 0x38], ebx
cmp ebx, dword [esp + 0x24]
jae 0x5481dc
lea eax, [esp + 0x48]
push eax
push ebx
push esi
call fcn.00549f89
mov edx, eax
add esp, 0xc
mov dword [esp + 0x3c], edx
test edx, edx
je 0x5481dc
mov eax, dword [esp + 0x48]
add eax, edx
mov dword [esp + 0x58], eax
lea ecx, [eax + ebx]
mov dword [esp + 0x5c], ecx
cmp ecx, dword [esp + 0x24]
ja 0x5481dc
mov ebx, dword [edi + 0x28]
mov eax, dword [esp + 0x4c]
add ebx, dword [esp + 0x50]
mov dword [esp + 0x1c], eax
cmp eax, ebx
jae 0x54804c
mov ecx, dword [edi]
mov dword [esp + 0x44], eax
mov al, byte [ecx + eax]
and al, 0xf
mov byte [esp + 0x70], al
cmp al, 7
jb 0x5481d7
cmp al, 0xa
ja 0x5481d7
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x20]
push edi
call fcn.00549f89
mov edx, eax
add esp, 0xc
mov dword [esp + 0x2c], edx
test edx, edx
je 0x5481d7
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x30], eax
cmp eax, ebx
jae 0x5481d7
lea ecx, [esp + 0x28]
push ecx
push eax
push edi
call fcn.00549f89
add esp, 0xc
mov dword [esp + 0x40], eax
test eax, eax
je 0x5481d7
add eax, dword [esp + 0x28]
add eax, dword [esp + 0x30]
mov dword [esp + 0x54], eax
cmp eax, ebx
ja 0x5481d7
mov al, byte [esp + 0x70]
cmp al, 7
je 0x547ff6
cmp al, 0xa
je 0x547ff6
xor edx, edx
jmp 0x547ff9
xor edx, edx
inc edx
mov al, byte [esp + 0x13]
cmp al, 7
je 0x548009
cmp al, 0xa
je 0x548009
xor ecx, ecx
jmp 0x54800c
xor ecx, ecx
inc ecx
mov eax, dword [esp + 0x1c]
add eax, dword [edi]
add eax, dword [esp + 0x2c]
push edx
push dword [esp + 0x24]
push eax
mov eax, dword [esi]
add eax, dword [esp + 0x24]
add eax, dword [esp + 0x40]
push ecx
push dword [esp + 0x24]
push eax
call fcn.005476cd
add esp, 0x18
test eax, eax
jne 0x548048
mov eax, dword [esp + 0x54]
mov dword [esp + 0x1c], eax
cmp eax, ebx
jb 0x547f62
mov edx, dword [esp + 0x3c]
mov eax, dword [esi]
mov ecx, dword [esp + 0x38]
mov al, byte [eax + ecx]
and al, 0xf
cmp dword [esp + 0x1c], ebx
jae 0x5480ba
test al, al
jne 0x548094
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x40]
add eax, dword [esp + 0x20]
add eax, dword [esp + 0x2c]
push 0
push 0
push eax
push dword [esp + 0x50]
push edi
call fcn.00546c93
add esp, 0x14
cmp byte [edi + 0x23], 0
je 0x5481b1
push 3
jmp 0x5481de
mov ebx, dword [edi + 0x28]
and dword [edi + 0x28], 0
push ecx
push esi
push dword [esp + 0x38]
push edi
call fcn.00547dab
add esp, 0x10
test eax, eax
jne 0x5481df
add dword [edi + 0x28], ebx
jmp 0x5481b1
test al, al
je 0x5481b1
cmp al, 0xc
mov eax, dword [esp + 0x18]
je 0x548135
add eax, dword [esp + 0x14]
add eax, dword [esp + 0x48]
add eax, edx
push eax
push 0
push 0
push ebx
push edi
call fcn.00546c93
mov esi, dword [esp + 0x80]
add esp, 0x14
cmp byte [edi + 0x23], 0
jne 0x54808d
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x18]
push eax
mov eax, dword [esi]
add eax, dword [esp + 0x38]
push eax
mov eax, dword [edi]
add eax, ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esi]
add eax, dword [esp + 0x44]
push dword [esp + 0x64]
mov ecx, dword [esp + 0x28]
add ecx, dword [esp + 0x24]
push eax
mov eax, dword [edi]
add eax, ecx
add eax, ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ebp, dword [esp + 0x80]
add esp, 0x18
jmp 0x5481b1
mov edx, dword [esp + 0x14]
inc edx
add eax, edx
push eax
push 0
push 0
push ebx
push edi
call fcn.00546c93
add esp, 0x14
cmp byte [edi + 0x23], 0
jne 0x54808d
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x18]
push eax
mov eax, dword [esi]
add eax, dword [esp + 0x38]
push eax
mov eax, dword [edi]
add eax, ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [edi]
mov ecx, dword [esp + 0x24]
add ecx, dword [esp + 0x20]
push dword [esp + 0x44]
add eax, ecx
push esi
mov byte [eax + ebx], 0
mov eax, dword [edi + 0x28]
and dword [edi + 0x28], 0
mov dword [esp + 0x84], eax
lea eax, [ecx + ebx]
push eax
push edi
call fcn.00547dab
mov ebp, dword [esp + 0x84]
add esp, 0x1c
test eax, eax
jne 0x5481df
mov eax, dword [esp + 0x70]
add dword [edi + 0x28], eax
mov ebx, dword [esp + 0x5c]
cmp ebx, dword [esp + 0x24]
jb 0x547ec5
cmp dword [edi + 0x28], 0
je 0x547e2a
push ebp
push edi
call fcn.005463b0
pop ecx
pop ecx
jmp 0x547e2a
xor eax, eax
inc eax
jmp 0x5481df
push 2
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret