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

Disassembly:
sub esp, 0x7c
push ebx
mov ebx, dword [esp + 0x8c]
push esi
push edi
xor eax, eax
test ebx, ebx
mov ecx, 8
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x90]
jbe 0x452712
jmp 0x452700
movzx ecx, word [edi + eax*2]
inc word [esp + ecx*2 + 0x48]
lea ecx, [esp + ecx*2 + 0x48]
inc eax
cmp eax, ebx
jb 0x452700
mov esi, dword [esp + 0x9c]
mov eax, dword [esi]
mov edx, 0xf
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edx
cmp word [esp + edx*2 + 0x48], 0
jne 0x452736
dec edx
cmp edx, 1
jae 0x452728
cmp eax, edx
mov dword [esp + 0x18], edx
jbe 0x452744
mov dword [esp + 0x10], edx
mov eax, edx
test edx, edx
jne 0x452781
mov eax, dword [esp + 0x98]
mov word [esp + 0xe], dx
mov edx, dword [eax]
mov byte [esp + 0xc], 0x40
mov byte [esp + 0xd], 1
mov ecx, dword [esp + 0xc]
mov dword [edx], ecx
mov edx, dword [eax]
add edx, 4
mov dword [eax], edx
mov dword [edx], ecx
add dword [eax], 4
pop edi
mov dword [esi], 1
pop esi
xor eax, eax
pop ebx
add esp, 0x7c
ret
push ebp
mov ebp, 1
cmp word [esp + ebp*2 + 0x4c], 0
jne 0x4527c9
cmp word [esp + ebp*2 + 0x4e], 0
jne 0x4527b9
cmp word [esp + ebp*2 + 0x50], 0
jne 0x4527bc
cmp word [esp + ebp*2 + 0x52], 0
jne 0x4527c1
cmp word [esp + ebp*2 + 0x54], 0
jne 0x4527c6
add ebp, 5
cmp ebp, 0xf
jbe 0x452787
jmp 0x4527c9
inc ebp
jmp 0x4527c9
add ebp, 2
jmp 0x4527c9
add ebp, 3
jmp 0x4527c9
add ebp, 4
cmp eax, ebp
jae 0x4527d1
mov dword [esp + 0x14], ebp
mov ecx, 1
mov eax, ecx
jmp 0x4527e0
movzx esi, word [esp + eax*2 + 0x4c]
add ecx, ecx
sub ecx, esi
js 0x4528de
inc eax
cmp eax, 0xf
jbe 0x4527e0
test ecx, ecx
mov esi, dword [esp + 0x90]
jle 0x452811
test esi, esi
je 0x4528de
cmp edx, 1
jne 0x4528de
mov word [esp + 0x6e], 0
mov eax, 2
lea ecx, [ecx]
mov cx, word [esp + eax + 0x6c]
add cx, word [esp + eax + 0x4c]
mov dx, word [esp + eax + 0x4e]
add dx, cx
mov word [esp + eax + 0x6e], cx
mov cx, word [esp + eax + 0x50]
add cx, dx
mov word [esp + eax + 0x70], dx
mov dx, word [esp + eax + 0x52]
add dx, cx
mov word [esp + eax + 0x72], cx
mov cx, word [esp + eax + 0x54]
add cx, dx
mov word [esp + eax + 0x74], dx
mov dx, word [esp + eax + 0x56]
add dx, cx
mov word [esp + eax + 0x76], cx
mov cx, word [esp + eax + 0x58]
add cx, dx
mov word [esp + eax + 0x78], dx
mov word [esp + eax + 0x7a], cx
add eax, 0xe
cmp eax, 0x1e
jb 0x452820
mov edx, dword [esp + 0xa4]
xor eax, eax
test ebx, ebx
jbe 0x4528b9
mov cx, word [edi + eax*2]
test cx, cx
je 0x4528b4
movzx ecx, cx
movzx ecx, word [esp + ecx*2 + 0x6c]
mov word [edx + ecx*2], ax
movzx ecx, word [edi + eax*2]
inc word [esp + ecx*2 + 0x6c]
lea ecx, [esp + ecx*2 + 0x6c]
inc eax
cmp eax, ebx
jb 0x452892
mov eax, esi
sub eax, 0
mov ecx, 0xffffffff
je 0x45290f
dec eax
je 0x4528e9
mov dword [esp + 0x34], 0x4d0970
mov dword [esp + 0x30], 0x4d09b0
mov dword [esp + 0x2c], ecx
jmp 0x45291f
pop ebp
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x7c
ret
mov eax, 0x4d08f0
sub eax, 0x202
mov dword [esp + 0x34], eax
mov eax, 0x4d0930
sub eax, 0x202
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], 0x100
jmp 0x45291f
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], 0x13
mov eax, dword [esp + 0x9c]
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x14]
mov eax, 1
shl eax, cl
mov dword [esp + 0x18], ebp
xor edi, edi
xor ebx, ebx
cmp esi, 1
mov ebp, eax
lea ecx, [eax - 1]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], ecx
jne 0x45296a
cmp eax, 0x5b0
jb 0x45296a
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x7c
ret
mov dword [esp + 0x24], edx
jmp 0x452974
mov ebp, dword [esp + 0x3c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov cx, word [ecx]
mov esi, dword [esp + 0x2c]
mov al, dl
sub al, bl
mov byte [esp + 0x11], al
movzx eax, cx
cmp eax, esi
jge 0x45299e
mov byte [esp + 0x10], 0
mov word [esp + 0x12], cx
jmp 0x4529c6
jle 0x4529ba
mov ecx, dword [esp + 0x30]
mov cl, byte [ecx + eax*2]
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x34]
mov ax, word [ecx + eax*2]
mov word [esp + 0x12], ax
jmp 0x4529c6
mov byte [esp + 0x10], 0x60
mov word [esp + 0x12], 0
mov ecx, edx
sub ecx, ebx
mov eax, ebp
mov edx, 1
shl edx, cl
mov ecx, ebx
mov ebp, edi
shr ebp, cl
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x44], eax
lea esi, [edx*4]
add ebp, eax
lea ecx, [ecx + ebp*4]
mov ebp, dword [esp + 0x10]
sub eax, edx
sub ecx, esi
test eax, eax
mov dword [ecx], ebp
jne 0x4529f1
mov edx, dword [esp + 0x18]
lea ecx, [edx - 1]
mov eax, 1
shl eax, cl
test edi, eax
je 0x452a16
lea ecx, [ecx]
shr eax, 1
test edi, eax
jne 0x452a10
test eax, eax
je 0x452a25
lea ecx, [eax - 1]
and ecx, edi
add ecx, eax
mov edi, ecx
jmp 0x452a27
xor edi, edi
mov esi, dword [esp + 0x24]
add esi, 2
dec word [esp + edx*2 + 0x4c]
cmp word [esp + edx*2 + 0x4c], 0
mov dword [esp + 0x24], esi
jne 0x452a5d
cmp edx, dword [esp + 0x1c]
je 0x452b2b
mov ecx, dword [esp + 0x94]
mov edx, esi
movzx eax, word [edx]
movzx edx, word [ecx + eax*2]
mov dword [esp + 0x18], edx
cmp edx, dword [esp + 0x14]
jbe 0x452970
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
and esi, edi
cmp esi, eax
mov dword [esp + 0x48], esi
je 0x452970
test ebx, ebx
jne 0x452a85
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x1c]
lea edx, [eax + ecx*4]
mov ecx, dword [esp + 0x18]
sub ecx, ebx
mov dword [esp + 0x20], edx
mov eax, 1
lea edx, [ebx + ecx]
shl eax, cl
cmp edx, ebp
jae 0x452acc
lea esi, [esp + edx*2 + 0x4c]
movzx ebp, word [esi]
sub eax, ebp
test eax, eax
jle 0x452ac8
mov ebp, dword [esp + 0x1c]
inc ecx
inc edx
add esi, 2
shl eax, 1
cmp edx, ebp
jb 0x452ab0
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x28]
mov eax, 1
mov ebp, eax
shl ebp, cl
add edx, ebp
mov dword [esp + 0x28], edx
cmp dword [esp + 0x90], eax
mov dword [esp + 0x3c], ebp
jne 0x452afa
cmp dword [esp + 0x28], 0x5b0
jae 0x452bc7
mov edx, esi
mov esi, dword [esp + 0x9c]
mov eax, dword [esi]
mov byte [eax + edx*4], cl
mov ecx, dword [esi]
mov al, byte [esp + 0x14]
mov byte [ecx + edx*4 + 1], al
mov eax, dword [esi]
mov ecx, dword [esp + 0x20]
sub ecx, eax
sar ecx, 2
mov dword [esp + 0x38], edx
mov word [eax + edx*4 + 2], cx
jmp 0x452974
mov ebp, dword [esp + 0x9c]
mov al, dl
sub al, bl
test edi, edi
mov byte [esp + 0x10], 0x40
mov byte [esp + 0x11], al
mov word [esp + 0x12], 0
je 0x452ba5
mov esi, dword [esp + 0x20]
mov edi, edi
test ebx, ebx
je 0x452b75
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
and ecx, edi
cmp ecx, eax
je 0x452b75
mov eax, dword [esp + 0x14]
mov esi, dword [ebp]
xor ebx, ebx
mov dword [esp + 0x18], eax
mov byte [esp + 0x11], al
mov edx, eax
mov ecx, ebx
mov eax, edi
shr eax, cl
mov ecx, dword [esp + 0x10]
mov dword [esi + eax*4], ecx
lea ecx, [edx - 1]
mov eax, 1
shl eax, cl
test edi, eax
je 0x452b96
shr eax, 1
test edi, eax
jne 0x452b90
test eax, eax
je 0x452ba5
lea ecx, [eax - 1]
and ecx, edi
add ecx, eax
mov edi, ecx
jne 0x452b50
mov edx, dword [esp + 0x28]
mov ecx, dword [ebp]
lea eax, [edx*4]
mov edx, dword [esp + 0x14]
add ecx, eax
mov dword [ebp], ecx
mov ecx, dword [esp + 0xa0]
mov dword [ecx], edx
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x7c
ret