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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8bc
mov eax, dword [0x5b7a9c]
xor eax, esp
mov dword [esp + 0x8b8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push edi
push 0x2c
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x78]
push esi
push ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], esi
mov byte [esp + 0x6c], 0
mov dword [esp + 0x50], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x7c], esi
call fcn.00540610
mov edx, dword [0x5ba28c]
add esp, 0xc
mov dword [esp + 0x1c], edx
cmp dword [0x5ba27c], esi
jne 0x415053
cmp dword [0x5ed6e4], esi
je 0x415053
mov eax, dword [0x5ed04c]
mov ebx, dword [eax + 0x1690]
sub ebx, 1
js 0x415053
mov ecx, ebx
shl ecx, 7
mov dword [esp + 0x18], ecx
jmp 0x414fe9
mov eax, dword [0x5ed04c]
mov ecx, dword [esp + 0x18]
cmp ebx, esi
jl 0x415067
cmp ebx, dword [eax + 0x1690]
jge 0x415067
mov esi, dword [eax + 0x168c]
add esi, ecx
mov ecx, 0x20
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.005408be
add esp, 8
test eax, eax
je 0x41502c
add dword [esp + 0x18], 0xffffff80
dec ebx
xor esi, esi
test ebx, ebx
jge 0x414fe0
jmp 0x415053
cmp dword [0x5ba28c], 0
lea edx, [esp + 0x20]
mov dword [0x5ba264], edx
jne 0x415051
cmp dword [0x5ba290], 0
jne 0x415051
mov eax, dword [esp + 0x3c]
mov dword [0x5ba28c], eax
xor esi, esi
call fcn.00512126
cmp eax, esi
je 0x41506c
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x41506e
call fcn.005078a4
xor eax, eax
mov edi, dword [esp + 0x10]
push 0x208
lea ecx, [esp + 0x4b4]
push ecx
push edi
push eax
call fcn.005178d6
test eax, eax
je 0x415091
lea edi, [esp + 0x4b0]
push edi
lea edx, [esp + 0xa4]
push 0x208
push edx
call fcn.0054013c
mov eax, dword [0x5ba28c]
add esp, 0xc
cmp eax, 0x186a0
je 0x415110
mov dword [esp + 0x10], eax
cmp edi, esi
jne 0x4150bf
xor eax, eax
jmp 0x4150d3
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4150c4
sub eax, edx
sar eax, 1
push eax
push edi
mov ecx, 0x5ba3b8
call fcn.00401e70
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x58]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
push edi
call eax
mov ecx, 0x5ba3b8
mov ebx, eax
call fcn.00401b90
cmp ebx, esi
jne 0x415120
mov eax, dword [0x5ba28c]
cmp dword [esp + 0x10], eax
je 0x415172
cmp eax, 0x186a0
jne 0x415172
mov ecx, dword [esp + 0x14]
push edi
call fcn.00414540
mov ebx, eax
cmp ebx, esi
je 0x415172
mov eax, dword [ebx + 0x24]
lea ecx, [esp + 0xa0]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x415156
cmp dx, si
je 0x415152
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x415156
add eax, 4
add ecx, 4
cmp dx, si
jne 0x415130
xor eax, eax
jmp 0x41515b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0x415172
mov edx, dword [ebx]
mov edx, dword [edx + 0x54]
push 1
lea eax, [esp + 0xa4]
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x8c4]
pop edi
mov dword [0x5ba264], esi
mov dword [0x5ba280], esi
mov dword [0x5ba28c], eax
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0053fa67
mov esp, ebp
pop ebp
ret 4