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

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
mov esi, dword [esp + 0x50]
mov ecx, dword [esi + 0x748]
push edi
mov edi, 1
mov ebp, edi
call fcn.004953c0
mov ecx, dword [esi + 0x748]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00495970
test byte [0xb314e0], 1
jne 0x541b24
or dword [0xb314e0], edi
push 0x681e30
mov dword [0xb044b8], 0
call fcn.004a9213
add esp, 4
mov ecx, dword [0xb044b8]
lea ebx, [esi + 0x18]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], 4
lea ecx, [ecx]
cmp dword [ebx + 0x20], 0
je 0x541ce6
xor eax, eax
test ecx, ecx
mov dword [esp + 0x20], eax
jbe 0x541ce6
mov esi, 0xb03d38
mov dword [esp + 0x18], esi
cmp eax, dword [0xb044b8]
jae 0x541d2c
test esi, esi
je 0x541d2c
push esi
call fcn.00675380
test eax, eax
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
je 0x541d2c
test ebp, ebp
je 0x541d2c
push 0x18
call fcn.00475d70
add esp, 4
test eax, eax
je 0x541d25
push 0
push 0x2c
mov ecx, eax
call fcn.0048a4a0
mov esi, eax
test esi, esi
je 0x541bc3
add dword [esi + 4], edi
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.0048a6e0
mov ecx, dword [esp + 0x14]
mov edi, dword [ebx + 0x18]
mov ebp, dword [ebx + 0x1c]
push 0xa
mov ebx, ecx
call fcn.004743d0
push 0x40
lea ecx, [esp + 0x44]
push ecx
mov ecx, ebx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], ebp
call fcn.00473e90
mov ecx, dword [esp + 0x14]
push 0xa
mov edi, ecx
call fcn.004743d0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
push 0x40
lea ecx, [esp + 0x4c]
push ecx
mov ecx, edi
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
call fcn.00473e90
mov ecx, dword [esp + 0x14]
push 8
mov edi, ecx
call fcn.004743d0
mov edx, dword [esp + 0x2c]
push 0x20
lea eax, [esp + 0x34]
push eax
mov ecx, edi
mov dword [esp + 0x38], edx
call fcn.00473e90
test esi, esi
mov edi, 1
push edi
push ecx
mov eax, esp
mov dword [eax], esi
je 0x541c58
add dword [esi + 4], edi
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
test eax, eax
push ecx
mov ecx, esp
mov dword [ecx], eax
je 0x541c6a
add dword [eax + 4], edi
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0x748]
call fcn.00495470
xor ecx, ecx
test al, al
mov eax, dword [esp + 0x14]
setne cl
test eax, eax
mov ebp, ecx
je 0x541ca9
add dword [eax + 4], 0xffffffff
add eax, 4
cmp dword [eax], 0
jne 0x541ca9
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx]
push edi
call eax
mov dword [esp + 0x14], 0
test esi, esi
je 0x541cbc
add dword [esi + 4], 0xffffffff
jne 0x541cbc
mov edx, dword [esi]
mov eax, dword [edx]
push edi
mov ecx, esi
call eax
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
mov edi, 1
add eax, edi
add esi, 0x78
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], esi
jb 0x541b61
add ebx, 0x1c0
sub dword [esp + 0x24], edi
mov dword [esp + 0x1c], ebx
jne 0x541b40
mov eax, dword [esp + 0x28]
test eax, eax
je 0x541d19
add dword [eax + 4], 0xffffffff
add eax, 4
cmp dword [eax], 0
jne 0x541d19
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov eax, dword [edx]
push edi
call eax
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x40
ret 4
xor esi, esi
jmp 0x541bc3
xor ebp, ebp
jmp 0x541cc4