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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x5c]
mov eax, dword [esi]
xor ebp, ebp
push edi
mov edi, dword [esi + 0xc]
cmp edi, ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], edi
jne 0x452115
call fcn.00429be0
mov edi, eax
cmp edi, ebp
mov dword [esi + 0xc], eax
mov dword [esp + 0x2c], edi
je 0x452115
push 0x84
call fcn.00429e10
add esp, 4
cmp dword [esp + 0x7c], ebp
jge 0x452167
mov esi, dword [edi + 0xc]
cmp dword [edi + 0x10], esi
mov eax, dword [esp + 0x70]
movzx ebx, byte [eax + 0x18]
jg 0x45213b
call fcn.00429d30
test eax, eax
je 0x45213b
mov esi, 1
jmp 0x452163
mov edx, dword [edi + 0x14]
add dword [edi + 0xc], 1
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov byte [eax], 0x6e
mov byte [eax + 3], 0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ebp
mov dword [eax + 0x10], ebp
mov byte [eax + 1], 0
mov byte [edi + 0x6e], 0
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x70]
cmp dword [eax + 0x14], ebp
mov dword [esp + 0x18], ebp
jle 0x452588
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4521cf
cmp byte [edi + 0x1e], 0
je 0x45218d
xor ebx, ebx
jmp 0x4522b7
cmp byte [edi + 0xe2], 0
je 0x4521cf
cmp word [edi + 0xe0], 0x41
jb 0x4521cf
mov ebx, dword [edi + 0xec]
test ebx, ebx
je 0x4521cf
mov ecx, dword [ebx]
add dword [edi + 0xe4], 1
mov eax, dword [edi + 0xe4]
cmp eax, dword [edi + 0xe8]
mov dword [edi + 0xec], ecx
jle 0x45222e
mov dword [edi + 0xe8], eax
jmp 0x45222e
cmp dword [0x4df728], 0
je 0x45220f
mov eax, dword [0x4e3da0]
test eax, eax
je 0x4521eb
push eax
call dword [0x4df770]
add esp, 4
lea edx, [esp + 0x20]
push edx
mov eax, 0x41
call fcn.0040f050
mov eax, dword [0x4e3da0]
add esp, 4
test eax, eax
je 0x45221e
push eax
call dword [0x4df778]
jmp 0x45221b
push 0x41
call dword [0x4df740]
mov dword [esp + 0x24], eax
add esp, 4
mov ebx, dword [esp + 0x20]
test ebx, ebx
jne 0x452236
test edi, edi
je 0x45222e
mov byte [edi + 0x1e], 1
test ebx, ebx
je 0x4522b7
push 0x41
push 0
push ebx
call fcn.004858f0
add esp, 0xc
push 0
lea eax, [ebx + 0x40]
push 0
push eax
mov byte [ebx], 0x84
mov word [ebx + 0x28], 0xffff
mov dword [ebx + 4], eax
call fcn.00487dd0
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x78]
add esp, 0xc
test ecx, ecx
mov byte [eax], 0
mov dword [ebx + 0x38], 1
je 0x4522ac
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0x10]
mov eax, dword [esp + 0x18]
mov eax, dword [edx + eax*4]
mov ecx, dword [ecx + 0x10]
lea edx, [eax + eax*2]
lea ecx, [ecx + edx*8]
mov edx, dword [esp + 0x78]
lea eax, [eax + edx + 1]
mov dword [ebx + 0x18], eax
mov dl, byte [ecx + 0x16]
mov byte [ebx + 1], dl
mov eax, dword [ecx + 0x10]
mov ecx, dword [esp + 0x60]
call fcn.00426470
mov dword [ebx + 0x14], eax
jmp 0x4522b7
mov eax, dword [esp + 0x78]
mov dword [ebx + 0x18], eax
mov byte [ebx + 1], 0x64
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4522c8
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + ecx*4]
jmp 0x4522cf
mov edx, dword [esp + 0x70]
mov eax, dword [edx + 0x24]
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx]
mov ecx, dword [edx + 0x10]
lea eax, [eax + eax*2]
mov ecx, dword [ecx + eax*8]
test ecx, ecx
mov dword [esp + 0x34], ecx
je 0x452301
cmp byte [ecx], 0
mov eax, ecx
je 0x4522f8
lea ecx, [ecx]
add eax, 1
cmp byte [eax], 0
jne 0x4522f0
sub eax, ecx
and eax, 0x3fffffff
jmp 0x452303
xor eax, eax
lea ebp, [eax + 1]
add ebp, 0x40
test edi, edi
mov dword [esp + 0x24], eax
je 0x452361
cmp byte [edi + 0x1e], 0
je 0x45231e
xor esi, esi
jmp 0x452428
cmp byte [edi + 0xe2], 0
je 0x452361
movzx edx, word [edi + 0xe0]
cmp ebp, edx
jg 0x452361
mov esi, dword [edi + 0xec]
test esi, esi
je 0x452361
mov eax, dword [esi]
add dword [edi + 0xe4], 1
mov dword [edi + 0xec], eax
mov eax, dword [edi + 0xe4]
cmp eax, dword [edi + 0xe8]
jle 0x4523be
mov dword [edi + 0xe8], eax
jmp 0x4523be
lea ecx, [ebp - 1]
cmp ecx, 0x7ffffefe
ja 0x4523fd
cmp dword [0x4df728], 0
je 0x4523ed
mov eax, dword [0x4e3da0]
test eax, eax
je 0x45238c
push eax
call dword [0x4df770]
add esp, 4
lea edx, [esp + 0x1c]
push edx
mov eax, ebp
call fcn.0040f050
mov eax, dword [0x4e3da0]
add esp, 4
test eax, eax
je 0x4523ae
push eax
call dword [0x4df778]
add esp, 4
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x4523c2
test edi, edi
je 0x4523be
mov byte [edi + 0x1e], 1
test esi, esi
je 0x452428
push ebp
push 0
push esi
call fcn.004858f0
mov edi, dword [esp + 0x30]
lea eax, [edi + 1]
add esp, 0xc
test eax, eax
mov byte [esi], 0x1a
mov word [esi + 0x28], 0xffff
jne 0x452405
or word [esi + 2], 0x800
mov dword [esi + 4], eax
jmp 0x452421
push ebp
call dword [0x4df740]
add esp, 4
mov dword [esp + 0x1c], eax
jmp 0x4523ae
xor esi, esi
mov dword [esp + 0x1c], esi
jmp 0x4523b6
mov ecx, dword [esp + 0x34]
push edi
lea eax, [esi + 0x40]
push ecx
push eax
mov dword [esi + 4], eax
call fcn.00487dd0
mov edx, dword [esi + 4]
add esp, 0xc
mov byte [edi + edx], 0
mov dword [esi + 0x38], 1
mov eax, dword [esp + 0x60]
mov edi, dword [eax]
test edi, edi
je 0x452483
cmp byte [edi + 0x1e], 0
je 0x45243f
xor ebp, ebp
jmp 0x452504
cmp byte [edi + 0xe2], 0
je 0x452483
cmp word [edi + 0xe0], 0x40
jb 0x452483
mov eax, dword [edi + 0xec]
test eax, eax
je 0x452483
mov ecx, dword [eax]
add dword [edi + 0xe4], 1
mov dword [edi + 0xec], ecx
mov ecx, dword [edi + 0xe4]
cmp ecx, dword [edi + 0xe8]
jle 0x45247f
mov dword [edi + 0xe8], ecx
mov ebp, eax
jmp 0x4524e2
cmp dword [0x4df728], 0
je 0x4524c3
mov eax, dword [0x4e3da0]
test eax, eax
je 0x45249f
push eax
call dword [0x4df770]
add esp, 4
lea edx, [esp + 0x28]
push edx
mov eax, 0x40
call fcn.0040f050
mov eax, dword [0x4e3da0]
add esp, 4
test eax, eax
je 0x4524d2
push eax
call dword [0x4df778]
jmp 0x4524cf
push 0x40
call dword [0x4df740]
mov dword [esp + 0x2c], eax
add esp, 4
mov ebp, dword [esp + 0x28]
test ebp, ebp
jne 0x4524e6
test edi, edi
je 0x4524e2
mov byte [edi + 0x1e], 1
test ebp, ebp
je 0x452504
push 0x40
push 0
push ebp
call fcn.004858f0
add esp, 0xc
mov byte [ebp], 0x4c
mov word [ebp + 0x28], 0xffff
mov dword [ebp + 0x38], 1
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
push ecx
mov edi, ebx
mov eax, ebp
call fcn.00446c40
add esp, 4
cmp dword [esp + 0x10], 0
jne 0x452524
mov dword [esp + 0x10], ebp
jmp 0x452570
test ebp, ebp
je 0x452570
mov esi, dword [esp + 0x14]
mov ecx, 0x40
call fcn.0040f650
mov ebx, eax
test ebx, ebx
je 0x452559
push 0x40
push 0
push ebx
call fcn.004858f0
add esp, 0xc
mov byte [ebx], 0x45
mov word [ebx + 0x28], 0xffff
mov dword [ebx + 0x38], 1
mov edi, dword [esp + 0x10]
mov edx, esi
push edx
mov esi, ebp
mov eax, ebx
call fcn.00446c40
add esp, 4
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x70]
add eax, 1
cmp eax, dword [ecx + 0x14]
mov dword [esp + 0x18], eax
jl 0x452178
mov edx, dword [esp + 0x68]
mov ebp, dword [esp + 0x70]
cmp edx, dword [ebp]
jne 0x4526bb
cmp dword [esp + 0x7c], 0
jle 0x4526bb
mov esi, dword [esp + 0x14]
mov ecx, 0x41
call fcn.0040f650
mov edi, eax
test edi, edi
je 0x4525f1
push 0x41
push 0
push edi
call fcn.004858f0
add esp, 0xc
push 0
lea eax, [edi + 0x40]
push 0
or ebx, 0xffffffff
push eax
mov byte [edi], 0x84
mov word [edi + 0x28], bx
mov dword [edi + 4], eax
call fcn.00487dd0
mov eax, dword [edi + 4]
mov byte [eax], 0
add esp, 0xc
mov dword [edi + 0x38], 1
jmp 0x4525f4
or ebx, 0xffffffff
mov ecx, 0x41
call fcn.0040f650
mov ebp, eax
test ebp, ebp
je 0x452639
push 0x41
push 0
push ebp
call fcn.004858f0
add esp, 0xc
push 0
lea eax, [ebp + 0x40]
push 0
push eax
mov byte [ebp], 0x98
mov word [ebp + 0x28], bx
mov dword [ebp + 4], eax
call fcn.00487dd0
mov ecx, dword [ebp + 4]
mov byte [ecx], 0
add esp, 0xc
mov dword [ebp + 0x38], 1
test edi, edi
je 0x45265c
test ebp, ebp
je 0x45265c
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x64]
mov dword [edi + 0x18], edx
mov byte [edi + 1], 0x64
mov ecx, dword [eax + 0x20]
mov dword [ebp + 0x18], ecx
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x24], ebx
mov edx, dword [esp + 0x60]
mov esi, dword [edx]
mov ecx, 0x40
call fcn.0040f650
mov ebx, eax
test ebx, ebx
je 0x45268f
push 0x40
push 0
push ebx
call fcn.004858f0
add esp, 0xc
mov byte [ebx], 0x4b
mov word [ebx + 0x28], 0xffff
mov dword [ebx + 0x38], 1
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
push ecx
mov esi, ebp
mov eax, ebx
call fcn.00446c40
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add esp, 4
push ebx
call fcn.00446d00
mov ebp, dword [esp + 0x74]
add esp, 4
mov esi, eax
jmp 0x4526bf
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x60]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
push esi
lea edi, [esp + 0x3c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], ebx
call fcn.00450780
mov eax, dword [esp + 0x68]
add esp, 4
push 0
push 0
push esi
push eax
push ebx
call fcn.0045c8e0
add esp, 0x14
cmp dword [esp + 0x7c], 0
mov dword [esp + 0x60], eax
jle 0x452739
cmp byte [ebp + 0x18], 0
jne 0x452739
mov eax, dword [ebx + 0x1a8]
test eax, eax
jne 0x452732
mov eax, ebx
mov byte [eax + 0x159], 1
mov edi, dword [esp + 0x2c]
mov ebx, dword [edi + 0xc]
cmp dword [edi + 0x10], ebx
movzx ebp, byte [ebp + 0x18]
jg 0x452752
call fcn.00429d30
test eax, eax
jne 0x45277e
mov edx, dword [edi + 0x14]
add dword [edi + 0xc], 1
lea ecx, [ebx + ebx*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x7c]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0x6d
mov byte [eax + 3], 0
mov dword [eax + 4], ebp
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov byte [edi + 0x6e], cl
mov eax, dword [esp + 0x60]
test eax, eax
je 0x45278f
push eax
call fcn.0045d3b0
add esp, 4
test esi, esi
je 0x4527dd
mov ebx, dword [esp + 0x14]
push esi
push ebx
call fcn.00447020
add esp, 8
test word [esi + 2], 0x8000
jne 0x4527dd
test ebx, ebx
je 0x4527d4
cmp esi, dword [ebx + 0xf0]
jb 0x4527d4
cmp esi, dword [ebx + 0xf4]
jae 0x4527d4
mov edx, dword [ebx + 0xec]
mov dword [esi], edx
add dword [ebx + 0xe4], 0xffffffff
mov dword [ebx + 0xec], esi
jmp 0x4527dd
push esi
call fcn.0040f3f0
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4527f6
mov ecx, dword [edi + 0xc]
cmp ecx, eax
jle 0x4527f6
mov edx, dword [edi + 0x14]
lea eax, [eax + eax*4]
mov dword [edx + eax*4 + 8], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret