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

Disassembly:
sub esp, 0x88
mov eax, dword [0x5513d4]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x8c]
mov edx, ecx
mov ecx, dword [esp + 0x94]
push ebx
push ebp
mov ebp, dword [esp + 0xa0]
mov ebx, dword [edx + 8]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 4]
push esi
mov dword [esp + 0x34], ebp
mov ebp, dword [ebp*4 + 0x549230]
mov dword [esp + 0x18], eax
mov eax, dword [ecx*4 + 0x549230]
push edi
mov edi, dword [edx + 0xc]
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x40], ebp
cmp edi, ecx
jae 0x421742
lea esp, [esp]
mov ebp, dword [edx]
mov ecx, dword [ebp + 0xa074]
lea ebx, [ebp + 0x904c]
cmp ecx, dword [ebx + 0x102c]
jae 0x42163b
mov eax, dword [ebx + 0x1024]
movzx edx, byte [eax + ecx]
lea eax, [ecx + 1]
mov dword [ebx + 0x1028], eax
jmp 0x42165d
mov eax, dword [ebx]
lea ecx, [esp + 0x22]
push 1
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x523720]
mov ecx, ebx
call esi
cmp eax, 1
jne 0x421668
movzx edx, byte [esp + 0x22]
cmp edx, 0xffffffff
jne 0x42171f
jmp 0x42166b
or edx, 0xffffffff
cmp byte [ebp + 0xa084], 0
jne 0x42171f
mov eax, dword [ebp + 4]
xor ecx, ecx
add eax, 0xb552
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x8c], ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x4c], 0x52452c
mov dword [esp + 0x50], 0x52452c
mov dword [esp + 0x54], 0x52452c
mov dword [esp + 0x58], 0x52452c
mov dword [esp + 0x5c], 0x52452c
mov dword [esp + 0x60], 0x52452c
mov dword [esp + 0x64], 0x52452c
mov dword [esp + 0x90], 0x38
mov dword [esp + 0x48], eax
mov dword [esp + 0x88], 1
call fcn.0049ea30
push 3
mov ecx, 0x58c304
call fcn.0046dd90
xor edx, edx
mov byte [ebp + 0xa084], 1
mov ebx, dword [esp + 0x10]
mov ecx, edi
shl edx, cl
add edi, 8
or ebx, edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
cmp edi, dword [esp + 0x2c]
jb 0x421610
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
and eax, ebx
lea edx, [ecx + eax*8]
movzx eax, byte [edx]
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], eax
cmp eax, 0x10
jbe 0x4218d9
nop
cmp eax, 0x63
je 0x421e0e
movzx ecx, byte [edx + 1]
sub eax, 0x10
shr ebx, cl
sub edi, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], eax
cmp edi, eax
jae 0x4218b6
mov eax, dword [esp + 0x14]
mov ebp, dword [eax]
mov ecx, dword [ebp + 0xa074]
lea ebx, [ebp + 0x904c]
cmp ecx, dword [ebx + 0x102c]
jae 0x4217b1
mov eax, dword [ebx + 0x1024]
movzx eax, byte [eax + ecx]
inc ecx
mov dword [ebx + 0x1028], ecx
jmp 0x4217d3
mov eax, dword [ebx]
lea ecx, [esp + 0x23]
push 1
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x523720]
mov ecx, ebx
call esi
cmp eax, 1
jne 0x4217de
movzx eax, byte [esp + 0x23]
cmp eax, 0xffffffff
jne 0x421895
jmp 0x4217e1
or eax, 0xffffffff
cmp byte [ebp + 0xa084], 0
jne 0x421895
mov eax, dword [ebp + 4]
xor ecx, ecx
add eax, 0xb552
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x8c], ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x4c], 0x52452c
mov dword [esp + 0x50], 0x52452c
mov dword [esp + 0x54], 0x52452c
mov dword [esp + 0x58], 0x52452c
mov dword [esp + 0x5c], 0x52452c
mov dword [esp + 0x60], 0x52452c
mov dword [esp + 0x64], 0x52452c
mov dword [esp + 0x90], 0x38
mov dword [esp + 0x48], eax
mov dword [esp + 0x88], 1
call fcn.0049ea30
push 3
mov ecx, 0x58c304
call fcn.0046dd90
xor eax, eax
mov byte [ebp + 0xa084], 1
mov ebx, dword [esp + 0x10]
mov ecx, edi
shl eax, cl
add edi, 8
or ebx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], ebx
cmp edi, eax
jb 0x421784
mov edx, dword [esp + 0x28]
mov ecx, dword [eax*4 + 0x549230]
mov eax, dword [edx + 4]
and ecx, ebx
lea edx, [eax + ecx*8]
movzx eax, byte [edx]
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], eax
cmp eax, 0x10
ja 0x421760
movzx ecx, byte [edx + 1]
shr ebx, cl
sub edi, ecx
mov dword [esp + 0x10], ebx
cmp eax, 0x10
jne 0x421953
mov al, byte [edx + 4]
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov byte [edx + ebp + 0x10], al
inc ebp
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], ebp
cmp ebp, 0x8000
jne 0x421601
push 0x8000
mov ecx, edx
call fcn.00420c90
mov dword [esp + 0x1c], 0
call fcn.0049fe10
test al, al
jne 0x421e26
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
cmp byte [eax + 0xa084], 0
jne 0x421e26
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
jmp 0x421601
cmp eax, 0xf
je 0x421e15
cmp edi, eax
jae 0x421a0e
mov eax, dword [esp + 0x14]
mov ebp, dword [eax]
mov ecx, dword [ebp + 0xa074]
lea ebx, [ebp + 0x904c]
cmp ecx, dword [ebx + 0x102c]
jae 0x421993
mov eax, dword [ebx + 0x1024]
movzx edx, byte [eax + ecx]
lea eax, [ecx + 1]
mov dword [ebx + 0x1028], eax
jmp 0x4219b5
mov eax, dword [ebx]
lea ecx, [esp + 0x24]
push 1
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x523720]
mov ecx, ebx
call esi
cmp eax, 1
jne 0x4219bc
movzx edx, byte [esp + 0x24]
cmp edx, 0xffffffff
jne 0x4219ed
jmp 0x4219bf
or edx, 0xffffffff
cmp byte [ebp + 0xa084], 0
jne 0x4219ed
mov eax, dword [ebp + 4]
add eax, 0xb552
push eax
push 0x38
call fcn.00451e30
push 3
mov ecx, 0x58c304
call fcn.0046dd90
xor edx, edx
mov byte [ebp + 0xa084], 1
mov ebx, dword [esp + 0x10]
mov ecx, edi
mov eax, dword [esp + 0x18]
add edi, 8
shl edx, cl
or ebx, edx
mov dword [esp + 0x10], ebx
cmp edi, eax
jb 0x421964
mov edx, dword [esp + 0x28]
mov ecx, dword [eax*4 + 0x549230]
sub edi, eax
and ecx, ebx
add ecx, dword [edx + 4]
mov dword [esp + 0x34], ecx
mov ecx, eax
shr ebx, cl
mov dword [esp + 0x10], ebx
cmp edi, dword [esp + 0x38]
jae 0x421ad6
mov eax, dword [esp + 0x14]
mov ebp, dword [eax]
mov ecx, dword [ebp + 0xa074]
lea ebx, [ebp + 0x904c]
cmp ecx, dword [ebx + 0x102c]
jae 0x421a61
mov eax, dword [ebx + 0x1024]
movzx edx, byte [eax + ecx]
lea eax, [ecx + 1]
mov dword [ebx + 0x1028], eax
jmp 0x421a83
mov eax, dword [ebx]
lea ecx, [esp + 0x25]
push 1
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x523720]
mov ecx, ebx
call esi
cmp eax, 1
jne 0x421a8a
movzx edx, byte [esp + 0x25]
cmp edx, 0xffffffff
jne 0x421abb
jmp 0x421a8d
or edx, 0xffffffff
cmp byte [ebp + 0xa084], 0
jne 0x421abb
mov eax, dword [ebp + 4]
add eax, 0xb552
push eax
push 0x38
call fcn.00451e30
push 3
mov ecx, 0x58c304
call fcn.0046dd90
xor edx, edx
mov byte [ebp + 0xa084], 1
mov ebx, dword [esp + 0x10]
mov ecx, edi
shl edx, cl
add edi, 8
or ebx, edx
mov dword [esp + 0x10], ebx
cmp edi, dword [esp + 0x38]
jb 0x421a32
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
and eax, ebx
movzx edx, byte [ecx + eax*8]
lea eax, [ecx + eax*8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], edx
cmp edx, 0x10
jbe 0x421c7c
jmp 0x421b00
cmp edx, 0x63
je 0x421e0e
movzx ecx, byte [eax + 1]
sub edx, 0x10
shr ebx, cl
sub edi, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], edx
cmp edi, edx
jae 0x421c58
mov eax, dword [esp + 0x14]
mov ebp, dword [eax]
mov ecx, dword [ebp + 0xa074]
lea ebx, [ebp + 0x904c]
cmp ecx, dword [ebx + 0x102c]
jae 0x421b53
mov eax, dword [ebx + 0x1024]
movzx edx, byte [eax + ecx]
lea eax, [ecx + 1]
mov dword [ebx + 0x1028], eax
jmp 0x421b75
mov eax, dword [ebx]
lea ecx, [esp + 0x26]
push 1
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x523720]
mov ecx, ebx
call esi
cmp eax, 1
jne 0x421b80
movzx edx, byte [esp + 0x26]
cmp edx, 0xffffffff
jne 0x421c37
jmp 0x421b83
or edx, 0xffffffff
cmp byte [ebp + 0xa084], 0
jne 0x421c37
mov eax, dword [ebp + 4]
xor ecx, ecx
add eax, 0xb552
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x8c], ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x4c], 0x52452c
mov dword [esp + 0x50], 0x52452c
mov dword [esp + 0x54], 0x52452c
mov dword [esp + 0x58], 0x52452c
mov dword [esp + 0x5c], 0x52452c
mov dword [esp + 0x60], 0x52452c
mov dword [esp + 0x64], 0x52452c
mov dword [esp + 0x90], 0x38
mov dword [esp + 0x48], eax
mov dword [esp + 0x88], 1
call fcn.0049ea30
push 3
mov ecx, 0x58c304
call fcn.0046dd90
xor edx, edx
mov byte [ebp + 0xa084], 1
mov ebx, dword [esp + 0x10]
mov ecx, edi
shl edx, cl
add edi, 8
or ebx, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], ebx
cmp edi, edx
jb 0x421b24
mov eax, dword [esp + 0x28]
mov ecx, dword [edx*4 + 0x549230]
mov eax, dword [eax + 4]
and ecx, ebx
movzx edx, byte [eax + ecx*8]
lea eax, [eax + ecx*8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], edx
cmp edx, 0x10
ja 0x421b00
movzx ecx, byte [eax + 1]
shr ebx, cl
sub edi, ecx
mov dword [esp + 0x10], ebx
cmp edi, edx
jae 0x421d36
mov eax, dword [esp + 0x14]
mov ebp, dword [eax]
mov ecx, dword [ebp + 0xa074]
lea ebx, [ebp + 0x904c]
cmp ecx, dword [ebx + 0x102c]
jae 0x421cbf
mov eax, dword [ebx + 0x1024]
movzx edx, byte [eax + ecx]
lea eax, [ecx + 1]
mov dword [ebx + 0x1028], eax
jmp 0x421ce1
mov eax, dword [ebx]
lea ecx, [esp + 0x27]
push 1
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x523720]
mov ecx, ebx
call esi
cmp eax, 1
jne 0x421ce8
movzx edx, byte [esp + 0x27]
cmp edx, 0xffffffff
jne 0x421d19
jmp 0x421ceb
or edx, 0xffffffff
cmp byte [ebp + 0xa084], 0
jne 0x421d19
mov eax, dword [ebp + 4]
add eax, 0xb552
push eax
push 0x38
call fcn.00451e30
push 3
mov ecx, 0x58c304
call fcn.0046dd90
xor edx, edx
mov byte [ebp + 0xa084], 1
mov ebx, dword [esp + 0x10]
mov ecx, edi
shl edx, cl
add edi, 8
or ebx, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], ebx
cmp edi, edx
jb 0x421c90
mov eax, dword [edx*4 + 0x549230]
mov ecx, edx
mov ebp, dword [esp + 0x1c]
and eax, ebx
mov esi, ebp
shr ebx, cl
sub esi, eax
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x28]
sub esi, dword [eax + 4]
sub edi, edx
mov edx, dword [esp + 0x14]
lea esp, [esp]
and esi, 0x7fff
mov eax, esi
cmp esi, ebp
ja 0x421d6e
mov eax, ebp
mov ebx, 0x8000
sub ebx, eax
mov eax, dword [esp + 0x34]
cmp ebx, eax
jbe 0x421d7f
mov ebx, eax
sub eax, ebx
mov dword [esp + 0x34], eax
mov eax, ebp
sub eax, esi
cmp eax, ebx
jb 0x421db0
lea eax, [esi + 0x10]
add eax, edx
push ebx
push eax
lea eax, [edx + 0x10]
add eax, ebp
push eax
call fcn.00504fb0
mov edx, dword [esp + 0x20]
add esp, 0xc
add ebp, ebx
add esi, ebx
jmp 0x421dbf
mov al, byte [edx + esi + 0x10]
inc esi
mov byte [edx + ebp + 0x10], al
inc ebp
sub ebx, 1
jne 0x421db0
mov dword [esp + 0x1c], ebp
cmp ebp, 0x8000
jne 0x421df1
push ebp
mov ecx, edx
call fcn.00420c90
xor ebp, ebp
mov dword [esp + 0x1c], ebp
call fcn.0049fe10
test al, al
jne 0x421e26
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
cmp byte [eax + 0xa084], 0
jne 0x421e26
mov ecx, dword [esp + 0x34]
test ecx, ecx
jne 0x421d60
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
jmp 0x421601
mov eax, 1
jmp 0x421e28
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov dword [ecx + 4], eax
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], edi
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00502f8e
add esp, 0x88
ret 0x10