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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8bc
mov eax, dword [0x5b7b5c]
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.0053ff80
mov edx, dword [0x5ba35c]
add esp, 0xc
mov dword [esp + 0x1c], edx
cmp dword [0x5ba34c], esi
jne 0x415163
cmp dword [0x5ed754], esi
je 0x415163
mov eax, dword [0x5ed0c0]
mov ebx, dword [eax + 0x1768]
sub ebx, 1
js 0x415163
mov ecx, ebx
shl ecx, 7
mov dword [esp + 0x18], ecx
jmp 0x4150f9
mov eax, dword [0x5ed0c0]
mov ecx, dword [esp + 0x18]
cmp ebx, esi
jl 0x415177
cmp ebx, dword [eax + 0x1768]
jge 0x415177
mov esi, dword [eax + 0x1764]
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.0054022e
add esp, 8
test eax, eax
je 0x41513c
add dword [esp + 0x18], 0xffffff80
dec ebx
xor esi, esi
test ebx, ebx
jge 0x4150f0
jmp 0x415163
cmp dword [0x5ba35c], 0
lea edx, [esp + 0x20]
mov dword [0x5ba334], edx
jne 0x415161
cmp dword [0x5ba360], 0
jne 0x415161
mov eax, dword [esp + 0x3c]
mov dword [0x5ba35c], eax
xor esi, esi
call fcn.0051279f
cmp eax, esi
je 0x41517c
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x41517e
call fcn.00507f95
xor eax, eax
mov edi, dword [esp + 0x10]
push 0x208
lea ecx, [esp + 0x4b4]
push ecx
push edi
push eax
call fcn.00517f84
test eax, eax
je 0x4151a1
lea edi, [esp + 0x4b0]
push edi
lea edx, [esp + 0xa4]
push 0x208
push edx
call fcn.0053fe1c
mov eax, dword [0x5ba35c]
add esp, 0xc
cmp eax, 0x186a0
je 0x415220
mov dword [esp + 0x10], eax
cmp edi, esi
jne 0x4151cf
xor eax, eax
jmp 0x4151e3
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4151d4
sub eax, edx
sar eax, 1
push eax
push edi
mov ecx, 0x5ba484
call fcn.00401e40
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, 0x5ba484
mov ebx, eax
call fcn.00401b60
cmp ebx, esi
jne 0x415230
mov eax, dword [0x5ba35c]
cmp dword [esp + 0x10], eax
je 0x415282
cmp eax, 0x186a0
jne 0x415282
mov ecx, dword [esp + 0x14]
push edi
call fcn.00414650
mov ebx, eax
cmp ebx, esi
je 0x415282
mov eax, dword [ebx + 0x24]
lea ecx, [esp + 0xa0]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x415266
cmp dx, si
je 0x415262
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x415266
add eax, 4
add ecx, 4
cmp dx, si
jne 0x415240
xor eax, eax
jmp 0x41526b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0x415282
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 [0x5ba334], esi
mov dword [0x5ba350], esi
mov dword [0x5ba35c], eax
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0053f73f
mov esp, ebp
pop ebp
ret 4