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

Disassembly:
sub esp, 0x9c
push ebx
mov ebx, dword [esp + 0xa4]
push ebp
push esi
mov ebp, ecx
push ebx
call fcn.00514400
lea eax, [esp + 0xc0]
lea ecx, [esp + 0xb0]
push eax
push ecx
call dword [0x52383c]
test eax, eax
je 0x51421d
mov esi, dword [esp + 0xd4]
test esi, esi
je 0x5143e8
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 0x2c
mov eax, dword [ebp + 0x30]
xor esi, esi
cmp eax, esi
jne 0x51422d
mov ecx, ebp
call fcn.00514970
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x1c], ecx
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], edx
add ebp, 0x24
push edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], esi
mov ecx, 0xe
lea esi, [esp + 0x20]
lea edi, [esp + 0x74]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x70], ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [eax + 4]
mov ecx, dword [0x58e488]
mov edi, eax
cmp esi, ecx
mov al, 1
je 0x5142ad
mov eax, dword [esi + 0xc]
mov edi, esi
cmp ebx, eax
setl al
test al, al
je 0x5142a6
mov esi, dword [esi]
jmp 0x5142a9
mov esi, dword [esi + 8]
cmp esi, ecx
jne 0x514294
mov cl, byte [ebp + 8]
test cl, cl
je 0x5142d7
lea eax, [esp + 0x13]
lea ecx, [esp + 0x70]
push eax
push ecx
push edi
lea edx, [esp + 0x78]
push esi
push edx
mov ecx, ebp
mov byte [esp + 0x27], 1
call fcn.00515120
push eax
jmp 0x51435c
test al, al
mov dword [esp + 0x14], edi
je 0x51431e
lea eax, [esp + 0x58]
mov ecx, ebp
push eax
call fcn.004b9ff0
mov ecx, dword [esp + 0x14]
mov edx, dword [eax]
cmp ecx, edx
jne 0x514315
lea edx, [esp + 0x11]
lea eax, [esp + 0x70]
push edx
push eax
push edi
lea ecx, [esp + 0x74]
push esi
push ecx
mov ecx, ebp
mov byte [esp + 0x25], 1
call fcn.00515120
push eax
jmp 0x51435c
lea ecx, [esp + 0x14]
call fcn.005153f0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x70]
mov eax, dword [edx + 0xc]
cmp eax, ecx
jge 0x51434d
lea ecx, [esp + 0x12]
lea edx, [esp + 0x70]
push ecx
push edx
push edi
lea eax, [esp + 0x70]
push esi
push eax
mov ecx, ebp
mov byte [esp + 0x26], 1
call fcn.00515120
push eax
jmp 0x51435c
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
mov byte [esp + 0x14], 0
push edx
lea ecx, [esp + 0x20]
call fcn.00515100
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x64]
call fcn.00515100
mov edx, dword [esp + 0x5c]
pop edi
lea eax, [edx + 0x10]
mov edx, dword [esp + 0xb0]
mov ecx, eax
mov dword [ecx], edx
mov edx, dword [esp + 0xb4]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0xb8]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0xbc]
mov dword [ecx + 0xc], edx
mov edx, dword [esp + 0xc0]
lea ecx, [eax + 0x10]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0xc4]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0xc8]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0xcc]
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0xd4]
mov edx, dword [esp + 0xd0]
mov dword [eax + 0x34], ecx
mov dword [eax + 0x30], edx
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 0x2c