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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, eax
mov eax, dword [ebx]
push esi
mov esi, dword [ebx + 8]
push edi
xor edi, edi
mov dword [ebp - 0x1c], eax
add esi, 0x28
lea eax, [edi + 8]
mov ecx, esi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
call fcn.004216b0
xor edx, edx
cmp dword [ebx + 0x5c], 7
mov dword [ebx + 0x14], edx
jne 0x421889
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + 0x40], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x1c]
and ecx, 3
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ecx
cmp ecx, 1
jne 0x421907
mov eax, dword [ebx + 8]
add eax, 0x168
test byte [eax + 0x1c], 0x10
mov dword [ebp - 0x14], eax
je 0x4218bd
mov ecx, dword [eax + 0x18]
mov edi, dword [eax + 4]
shr ecx, 2
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edi
xor ecx, ecx
xor eax, eax
cmp dword [ebp - 8], 2
mov dword [ebp - 0x10], edx
jl 0x4218ee
lea ebx, [ebx]
mov edx, dword [edi + eax*4]
add ecx, dword [edx + 4]
mov edx, dword [edi + eax*4 + 4]
mov edx, dword [edx + 4]
add dword [ebp - 0x10], edx
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
add eax, 2
dec edx
cmp eax, edx
jl 0x4218d0
cmp eax, dword [ebp - 8]
jge 0x4218fc
mov eax, dword [edi + eax*4]
mov edx, dword [eax + 4]
add dword [ebp - 4], edx
mov eax, dword [ebp - 0x10]
add eax, ecx
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x58]
lea edx, [eax + 1]
mov dword [ebx + 0x58], edx
cmp eax, dword [ebp - 4]
jge 0x42196c
cmp ecx, 2
jne 0x421926
mov edx, dword [ebx + 4]
lea ecx, [eax + eax*4]
cmp byte [edx + ecx*4], 0x96
jne 0x421904
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx + 0xe8]
test ecx, ecx
je 0x421981
mov dword [ebx + 0x5c], 9
mov ecx, dword [str.interrupted]
mov edi, 1
mov eax, str.unknown_error
test ecx, ecx
je 0x421950
mov eax, ecx
push eax
push 0x5186b0
add ebx, 0x38
mov esi, edx
call fcn.00404650
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 0x65
mov dword [ebx + 0x5c], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x1c]
cmp eax, ecx
jge 0x421996
mov ecx, dword [ebx + 4]
lea edx, [eax + eax*4]
lea edx, [ecx + edx*4]
mov dword [ebp - 4], edx
jmp 0x4219bf
sub eax, ecx
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
xor edx, edx
cmp eax, ecx
jl 0x4219b1
sub eax, ecx
mov ecx, dword [edi + edx*4 + 4]
mov ecx, dword [ecx + 4]
inc edx
cmp eax, ecx
jge 0x4219a3
mov edx, dword [edi + edx*4]
mov edx, dword [edx]
lea ecx, [eax + eax*4]
lea ecx, [edx + ecx*4]
mov dword [ebp - 4], ecx
mov edx, dword [ebx + 0x64]
and dl, 3
cmp dl, 1
jne 0x421a85
mov byte [esi + 0x1e], dl
cdq
mov dword [esi + 0x14], edx
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 4]
mov ecx, 4
mov word [esi + 0x1c], cx
mov edx, 0xa02
mov word [esi + 0x44], dx
movzx ecx, byte [eax]
mov eax, dword [ecx*4 + 0x5153c8]
mov dword [esi + 0x2c], eax
mov ecx, eax
test eax, eax
je 0x421a13
cmp byte [eax], 0
je 0x421a0b
inc ecx
cmp byte [ecx], 0
jne 0x421a05
sub ecx, eax
and ecx, 0x3fffffff
mov edx, dword [ebp - 4]
mov dword [esi + 0x40], ecx
mov word [esi + 0x46], 0x103
add esi, 0x50
cmp byte [edx + 1], 0xee
jne 0x421a85
mov edx, dword [ebp - 8]
lea eax, [edx*4 + 4]
xor ecx, ecx
mov dword [ebp - 0x1c], eax
test edx, edx
jle 0x421a4b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
cmp dword [edi + ecx*4], eax
je 0x421a4b
inc ecx
cmp ecx, edx
jl 0x421a41
cmp ecx, edx
jne 0x421a85
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
xor ecx, ecx
test edx, edx
setne cl
push ecx
call fcn.0041f4e0
add esp, 4
test eax, eax
jne 0x421a85
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x10]
mov eax, edi
mov edx, dword [eax + 4]
mov edi, dword [ebp - 8]
mov dword [edx + edi*4], ecx
mov edx, dword [ebp - 0x1c]
or word [eax + 0x1c], 0x10
mov dword [eax + 0x18], edx
mov ecx, dword [ebp - 4]
mov eax, 4
mov word [esi + 0x1c], ax
mov eax, dword [ecx + 4]
cdq
mov dword [esi + 0x14], edx
mov dword [esi + 0x10], eax
mov byte [esi + 0x1e], 1
mov edx, 4
mov word [esi + 0x44], dx
mov eax, dword [ecx + 8]
cdq
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
mov byte [esi + 0x46], 1
mov eax, 4
mov word [esi + 0x6c], ax
mov eax, dword [ecx + 0xc]
cdq
mov dword [esi + 0x60], eax
push 0
mov eax, 0x20
lea edi, [esi + 0x78]
mov dword [esi + 0x64], edx
mov byte [esi + 0x6e], 1
call fcn.0041f4e0
add esp, 4
test eax, eax
jne 0x42187d
mov edi, dword [esi + 0x7c]
mov eax, dword [ebp - 4]
mov ecx, 0x602
mov word [esi + 0x94], cx
call fcn.004212e0
mov ecx, dword [esi + 0x7c]
cmp eax, ecx
je 0x421b1a
push 1
push eax
xor eax, eax
or ecx, 0xffffffff
lea edx, [esi + 0x78]
call fcn.0041ff50
add esp, 8
jmp 0x421b3f
mov eax, ecx
test ecx, ecx
je 0x421b32
cmp byte [ecx], 0
je 0x421b2b
inc eax
cmp byte [eax], 0
jne 0x421b25
sub eax, ecx
and eax, 0x3fffffff
mov dword [esi + 0x90], eax
mov byte [esi + 0x97], 1
mov byte [esi + 0x96], 3
mov edx, dword [ebx + 0x64]
and dl, 3
cmp dl, 1
jne 0x421bbe
push 0
mov eax, 4
lea edi, [esi + 0xa0]
call fcn.0041f4e0
add esp, 4
test eax, eax
jne 0x42187d
mov ecx, dword [ebp - 4]
mov eax, 0x602
mov word [esi + 0xbc], ax
mov eax, dword [esi + 0xa4]
mov dword [esi + 0xb8], 2
movzx edx, byte [ecx + 3]
push edx
push str._.2x
push eax
push 3
call fcn.00405b10
mov word [esi + 0xbe], 0x103
mov ecx, 1
add esp, 0x10
mov word [esi + 0xe4], cx
mov byte [esi + 0xe6], 5
mov dx, word [ebx + 0x64]
mov ecx, dword [ebx + 8]
and dx, 3
dec dx
mov eax, 2
sub ax, dx
add ax, ax
add ax, ax
mov edi, 0x64
mov word [ebx + 0x2c], ax
mov eax, edi
pop edi
add ecx, 0x28
pop esi
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x5c], 0
pop ebx
mov esp, ebp
pop ebp
ret