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

Disassembly:
push 0xffffffffffffffff
push 0x574066
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], ebp
mov ebx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
push ebx
push eax
mov dword [esp + 0x80], 1
call fcn.00478ed0
lea edi, [esi + 0x40]
mov dword [esi + 0x34], ebp
mov dword [edi], ebp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x5c], ebp
mov dword [esi + 0x50], ebp
mov dword [esi + 0x54], ebp
mov dword [esi + 0x58], ebp
mov dword [esi + 0x4c], ebp
push 0x74
mov byte [esp + 0x7c], 4
mov dword [esi + 0x60], ebp
call fcn.00564fcb
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebp
mov byte [esp + 0x78], 5
je 0x4218cf
push 0xfa1
mov ecx, eax
call fcn.005568d0
jmp 0x4218d1
xor eax, eax
cmp eax, ebp
mov dword [esi + 0x64], eax
je 0x4218df
mov dword [eax + 4], 1
lea ebp, [esi + 0x68]
mov byte [esp + 0x78], 6
mov ecx, ebp
mov dword [esp + 0x18], ebp
call fcn.00404ad0
mov dword [ebp + 8], 0
push 0x30
mov byte [esp + 0x7c], 7
mov dword [ebp], 0x5967b8
call fcn.00564fcb
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov byte [esp + 0x78], 8
je 0x421930
mov ecx, dword [esp + 0x80]
push ebx
push ecx
push 1
mov ecx, eax
call fcn.00421550
jmp 0x421932
xor eax, eax
test eax, eax
mov dword [ebp + 8], eax
je 0x421940
mov dword [eax + 8], 1
lea ebp, [esi + 0x74]
mov byte [esp + 0x78], 9
mov ecx, ebp
call fcn.00404ad0
mov dword [ebp], 0x5967b8
mov dword [ebp + 8], 0
mov edx, dword [esp + 0x80]
push ebx
push edx
lea ecx, [esi + 0x80]
mov byte [esp + 0x80], 0xa
call fcn.00479ec0
lea ebp, [esi + 0x178]
xor eax, eax
mov dword [ebp], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
lea eax, [esp + 0x90]
mov byte [esp + 0x78], 0xc
cmp ebp, eax
mov dword [esi], 0x598750
je 0x4219bf
mov eax, dword [ebp]
test eax, eax
je 0x4219af
push eax
mov ecx, ebp
call fcn.00411610
mov eax, dword [esp + 0x90]
test eax, eax
mov dword [ebp], eax
je 0x4219bf
inc dword [eax]
lea ecx, [esp + 0x14]
mov byte [esi + 0x15], 1
push ecx
mov byte [esi + 9], 1
call fcn.00417590
lea edx, [esp + 0x10]
mov byte [esp + 0x78], 0xd
push edx
call fcn.004175b0
lea eax, [esp + 0x84]
lea ecx, [esp + 0x88]
push eax
mov byte [esp + 0x7c], 0xe
call fcn.004139b0
lea ecx, [esp + 0x84]
mov byte [esp + 0x78], 0xf
call fcn.00413540
xor ebx, ebx
lea ecx, [esp + 0x14]
push ebx
push ecx
lea ecx, [esp + 0x18]
call fcn.004124b0
cmp eax, 3
je 0x421a3b
lea edx, [esp + 0x10]
push ebx
push edx
lea ecx, [esp + 0x8c]
call fcn.004124b0
cmp eax, 3
jne 0x421a3b
push 1
jmp 0x421a3c
push ebx
mov ecx, esi
call fcn.00540800
cmp dword [esi + 0x6c], ebx
jne 0x422296
cmp dword [esi + 0x84], ebx
jne 0x422296
mov eax, dword [0x5d8d14]
cmp eax, ebx
je 0x421a6d
mov eax, dword [eax + 8]
cmp eax, ebx
je 0x421a6d
dec eax
cmp eax, ebx
jne 0x421a97
lea eax, [esp + 0x88]
cmp edi, eax
je 0x421ae9
mov eax, dword [edi]
cmp eax, ebx
je 0x421a86
push eax
mov ecx, edi
call fcn.00411610
mov eax, dword [esp + 0x88]
cmp eax, ebx
mov dword [edi], eax
je 0x421ae9
inc dword [eax]
jmp 0x421ae9
lea ecx, [esp + 0x88]
lea edx, [esp + 0x18]
push ecx
push 0x5d8d14
push edx
call fcn.00411fc0
mov ebp, eax
cmp edi, ebp
mov byte [esp + 0x78], 0x10
je 0x421ad2
mov eax, dword [edi]
cmp eax, ebx
je 0x421ac7
push eax
mov ecx, edi
call fcn.00411610
mov eax, dword [ebp]
cmp eax, ebx
mov dword [edi], eax
je 0x421ad2
inc dword [eax]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x78], 0xf
cmp eax, ebx
je 0x421ae9
push eax
lea ecx, [esp + 0x1c]
call fcn.00411610
mov eax, dword [edi]
push ecx
mov ecx, esp
cmp eax, ebx
mov dword [esp + 0x28], esp
mov dword [ecx], eax
je 0x421afa
inc dword [eax]
mov ecx, esi
call fcn.00422380
mov ecx, esi
call fcn.00478f80
mov ebp, dword [esp + 0x8c]
mov ebx, 0x19
cmp eax, ebx
jne 0x421c39
cmp ebp, 2
jne 0x421c39
push 0
mov ecx, esi
call fcn.00478f50
mov ecx, esi
call fcn.00478f80
cmp eax, ebx
jne 0x421f73
test ebp, ebp
jne 0x421f73
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x88]
push eax
call fcn.00413860
mov ebp, eax
cmp edi, ebp
mov byte [esp + 0x78], 0x18
je 0x421b7d
mov eax, dword [edi]
test eax, eax
je 0x421b72
push eax
mov ecx, edi
call fcn.00411610
mov eax, dword [ebp]
test eax, eax
mov dword [edi], eax
je 0x421b7d
inc dword [eax]
mov eax, dword [esp + 0x8c]
mov byte [esp + 0x78], 0xf
test eax, eax
je 0x421b9a
push eax
lea ecx, [esp + 0x90]
call fcn.00411610
mov eax, dword [0x5d8d14]
test eax, eax
je 0x421bb3
mov eax, dword [eax + 8]
test eax, eax
je 0x421bb3
dec eax
test eax, eax
jne 0x421ef7
lea ecx, [esp + 0x1c]
push ecx
call fcn.00417570
push edi
lea edx, [esp + 0x90]
push eax
push edx
mov byte [esp + 0x84], bl
call fcn.00411fc0
mov ebp, eax
cmp edi, ebp
mov byte [esp + 0x78], 0x1a
je 0x421bf7
mov eax, dword [edi]
test eax, eax
je 0x421bec
push eax
mov ecx, edi
call fcn.00411610
mov eax, dword [ebp]
test eax, eax
mov dword [edi], eax
je 0x421bf7
inc dword [eax]
mov eax, dword [esp + 0x8c]
mov byte [esp + 0x78], bl
test eax, eax
je 0x421c13
push eax
lea ecx, [esp + 0x90]
call fcn.00411610
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x8c], 0
test eax, eax
mov byte [esp + 0x78], 0xf
je 0x421f4b
push eax
lea ecx, [esp + 0x20]
jmp 0x421f46
mov ecx, esi
call fcn.00478f80
cmp eax, ebx
jne 0x421e84
cmp ebp, 3
jne 0x421b2e
xor ebx, ebx
push ebx
push ecx
mov eax, esp
mov dword [esp + 0x94], esp
push str..CDI
push edi
push eax
call fcn.004120c0
push ecx
mov byte [esp + 0x84], 0x11
mov ecx, esp
mov dword [esp + 0x30], esp
push str..CDD
push edi
push ecx
call fcn.004120c0
push ecx
mov byte [esp + 0x88], 0x12
mov edx, esp
mov dword [esp + 0x28], esp
push str..CDS
push edi
push edx
call fcn.004120c0
mov ecx, dword [esi + 0x34]
mov byte [esp + 0x88], 0xf
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [esi + 0x34]
add eax, 4
mov ecx, dword [eax]
mov dword [eax], ebx
push ecx
mov ecx, esi
call fcn.00478f50
mov ecx, esi
call fcn.00478f60
test al, al
je 0x421d22
mov eax, dword [esp + 0x84]
mov byte [esp + 0x78], 0xe
cmp eax, ebx
je 0x421cea
push eax
lea ecx, [esp + 0x88]
call fcn.00411610
mov eax, dword [esp + 0x10]
mov dword [esp + 0x84], ebx
cmp eax, ebx
mov byte [esp + 0x78], 0xd
je 0x421d08
push eax
lea ecx, [esp + 0x14]
call fcn.00411610
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
cmp eax, ebx
mov byte [esp + 0x78], 0xc
je 0x4222f5
jmp 0x4222eb
mov ecx, dword [esi + 0x34]
push str..CDS_
lea edx, [esp + 0x84]
push edi
mov ebp, dword [ecx + 0x4c]
push edx
call fcn.004120c0
cmp ebp, ebx
mov byte [esp + 0x78], 0x13
push 0x38
jl 0x421dd9
call fcn.00564fcb
mov ebx, eax
add esp, 4
mov dword [esp + 0x24], ebx
test ebx, ebx
mov byte [esp + 0x78], 0x14
je 0x421da8
mov eax, dword [esi + 0x18]
push 1
lea ecx, [esp + 0x90]
push eax
push ecx
mov ecx, edi
call fcn.00413860
mov dword [esp + 0x24], 1
push ecx
mov byte [esp + 0x84], 0x15
mov edx, esp
mov dword [esp + 0x24], esp
push eax
lea eax, [esp + 0x90]
push eax
push edx
call fcn.00411fc0
push ebp
mov ecx, ebx
call fcn.00433b30
xor edi, edi
jmp 0x421dac
xor edi, edi
xor eax, eax
mov dword [esi + 0x38], eax
mov al, byte [esp + 0x1c]
test al, 1
mov dword [esp + 0x78], 0x13
je 0x421e1e
mov eax, dword [esp + 0x8c]
cmp eax, edi
je 0x421e1e
push eax
lea ecx, [esp + 0x90]
call fcn.00411610
jmp 0x421e1e
call fcn.00564fcb
mov ebx, eax
add esp, 4
mov dword [esp + 0x8c], ebx
test ebx, ebx
mov byte [esp + 0x78], 0x17
je 0x421e12
mov ecx, dword [esi + 0x18]
push 1
push ecx
push ecx
mov edx, esp
mov dword [esp + 0x30], esp
push edx
mov ecx, edi
call fcn.00413860
push ebp
mov ecx, ebx
call fcn.00433b30
jmp 0x421e14
xor eax, eax
mov byte [esp + 0x78], 0x13
mov dword [esi + 0x38], eax
xor edi, edi
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
mov dword [eax], edi
push ecx
mov ecx, esi
call fcn.00478f50
mov eax, dword [esp + 0x80]
mov byte [esp + 0x78], 0xf
cmp eax, edi
je 0x421e4a
push eax
lea ecx, [esp + 0x84]
call fcn.00411610
mov eax, dword [esp + 0x84]
mov dword [esp + 0x80], edi
cmp eax, edi
mov byte [esp + 0x78], 0xe
je 0x421e6e
push eax
lea ecx, [esp + 0x88]
call fcn.00411610
mov eax, dword [esp + 0x10]
mov dword [esp + 0x84], edi
cmp eax, edi
mov byte [esp + 0x78], 0xd
je 0x421ed3
jmp 0x421ec9
cmp ebp, 3
jne 0x421b2e
push 0x25
mov ecx, esi
call fcn.00478f50
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov byte [esp + 0x78], 0xe
je 0x421eb5
push eax
lea ecx, [esp + 0x88]
call fcn.00411610
mov eax, dword [esp + 0x10]
mov dword [esp + 0x84], edi
cmp eax, edi
mov byte [esp + 0x78], 0xd
je 0x421ed3
push eax
lea ecx, [esp + 0x14]
call fcn.00411610
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], edi
cmp eax, edi
mov byte [esp + 0x78], 0xc
je 0x421eee
push eax
lea ecx, [esp + 0x18]
call fcn.00411610
mov dword [esp + 0x14], edi
jmp 0x4222f9
push edi
lea eax, [esp + 0x90]
push 0x5d8d14
push eax
call fcn.00411fc0
mov ebp, eax
cmp edi, ebp
mov byte [esp + 0x78], 0x1b
je 0x421f2e
mov eax, dword [edi]
test eax, eax
je 0x421f23
push eax
mov ecx, edi
call fcn.00411610
mov eax, dword [ebp]
test eax, eax
mov dword [edi], eax
je 0x421f2e
inc dword [eax]
mov eax, dword [esp + 0x8c]
mov byte [esp + 0x78], 0xf
test eax, eax
je 0x421f4b
push eax
lea ecx, [esp + 0x90]
call fcn.00411610
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x421f58
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [edi]
push ecx
mov ecx, esp
mov dword [esp + 0x90], esp
test eax, eax
mov dword [ecx], eax
je 0x421f6c
inc dword [eax]
mov ecx, esi
call fcn.00422380
mov eax, dword [esi + 0x34]
mov dword [eax + 4], 0
add eax, 4
mov eax, dword [esi + 0x34]
mov cl, byte [eax + 0x18]
test cl, cl
je 0x42222e
mov ecx, dword [esp + 0x80]
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], 0x596bf8
mov dword [esp + 0x30], ecx
push ecx
mov byte [esp + 0x7c], 0x1c
mov ecx, esp
mov dword [esp + 0x84], esp
push 0x5ca7b8
call fcn.00411a30
lea edx, [esp + 0x84]
mov ecx, edi
push edx
call fcn.00413c10
push 1
push 1
push 1
push ecx
lea eax, [esp + 0x90]
mov ecx, esp
mov dword [esp + 0x9c], esp
push eax
mov byte [esp + 0x8c], 0x1d
call fcn.00401ed0
lea ecx, [esp + 0x44]
call fcn.00417a10
lea ecx, [esp + 0x34]
mov byte [esp + 0x78], 0x1e
call fcn.00417d30
cmp dword [esp + 0x50], ebx
jne 0x4221d9
lea ecx, [esp + 0x34]
call fcn.00417e30
test al, al
jne 0x4221d9
lea eax, [esp + 0x28]
lea ecx, [esp + 0x2c]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x34]
push eax
call fcn.00417e60
push 1
push 1
lea ecx, [esp + 0x34]
call fcn.00414050
mov eax, dword [esp + 0x2c]
xor edi, edi
cmp eax, ebx
je 0x422102
mov eax, dword [eax + 8]
cmp eax, ebx
je 0x422102
dec eax
cmp eax, ebx
je 0x422102
lea ecx, [esp + 0x2c]
call fcn.00404a70
test eax, eax
ja 0x422086
lea ecx, [esp + 0x2c]
call fcn.00404a70
mov edi, eax
dec edi
lea ecx, [esp + 0x2c]
call fcn.00404a70
mov ecx, dword [esp + 0x2c]
mov edx, ecx
sub edx, edi
cmp byte [eax + edx + 0xb], 9
jne 0x422102
cmp ecx, ebx
mov edi, 1
je 0x4220b3
mov eax, dword [ecx + 8]
cmp eax, ebx
je 0x4220b3
dec eax
cmp eax, edi
jae 0x4220c2
lea ecx, [esp + 0x2c]
call fcn.00404a70
mov ecx, dword [esp + 0x2c]
mov edi, eax
cmp ecx, ebx
je 0x422102
lea ecx, [esp + 0x2c]
call fcn.00404a70
test eax, eax
je 0x422102
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [esp + 0x30]
call fcn.004119f0
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 8]
sub ecx, edi
mov dword [eax + 8], ecx
lea ecx, [esp + 0x2c]
call fcn.00404a70
mov edx, dword [esp + 0x2c]
mov byte [eax + edx + 0xc], 0
push 0x20
lea ecx, [esp + 0x30]
call fcn.004134e0
push 0x20
lea ecx, [esp + 0x30]
call fcn.004134a0
lea ecx, [esp + 0x28]
call fcn.00414a80
lea ecx, [esp + 0x2c]
call fcn.004133e0
lea eax, [esp + 0x28]
lea ebp, [esi + 0x68]
neg eax
lea ecx, [esp + 0x2c]
push ebp
sbb eax, eax
push ecx
and eax, ecx
mov ecx, esp
mov dword [esp + 0x94], esp
push eax
call fcn.00401ed0
mov ecx, esi
call fcn.00422f40
test al, al
je 0x4221c1
sub esp, 0xc
mov edi, esp
mov dword [esp + 0x98], esp
mov ecx, edi
call fcn.00404ad0
mov dword [edi + 8], ebx
mov dword [edi], 0x5967b8
mov edx, dword [ebp + 8]
mov dword [edi + 8], edx
mov eax, dword [ebp + 4]
mov dword [edi + 4], eax
mov edi, edx
cmp edi, ebx
je 0x422188
inc dword [edi + 8]
lea edi, [esi + 0x48]
mov ecx, edi
call fcn.00419af0
cmp dword [edi], ebx
jne 0x4221c1
lea eax, [esp + 0x28]
lea ecx, [esp + 0x2c]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esi + 0x54]
dec ecx
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x94], esp
push eax
call fcn.00401ed0
lea ecx, [esi + 0x60]
call fcn.00423e30
mov ecx, esi
call fcn.00478f70
lea ecx, [esp + 0x34]
call fcn.00417e30
test al, al
je 0x422026
lea ecx, [esp + 0x34]
mov byte [esp + 0x78], 0x1d
call fcn.00417ab0
mov eax, dword [esp + 0x80]
mov byte [esp + 0x78], 0x1c
cmp eax, ebx
je 0x422204
push eax
lea ecx, [esp + 0x84]
call fcn.00411610
lea edi, [esp + 0x28]
lea edx, [esp + 0x2c]
neg edi
sbb edi, edi
mov dword [esp + 0x80], ebx
and edi, edx
mov byte [esp + 0x78], 0xf
mov eax, dword [edi]
cmp eax, ebx
je 0x42222c
push eax
mov ecx, edi
call fcn.00411610
mov dword [edi], ebx
mov eax, dword [esp + 0x84]
mov byte [esp + 0x78], 0xe
test eax, eax
je 0x42224b
push eax
lea ecx, [esp + 0x88]
call fcn.00411610
mov eax, dword [esp + 0x10]
mov dword [esp + 0x84], 0
test eax, eax
mov byte [esp + 0x78], 0xd
je 0x42226d
push eax
lea ecx, [esp + 0x14]
call fcn.00411610
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], 0
test eax, eax
mov byte [esp + 0x78], 0xc
je 0x42228c
push eax
lea ecx, [esp + 0x18]
call fcn.00411610
mov dword [esp + 0x14], 0
jmp 0x4222f9
push 3
mov ecx, esi
call fcn.00478f50
mov eax, dword [esp + 0x84]
mov byte [esp + 0x78], 0xe
cmp eax, ebx
je 0x4222bc
push eax
lea ecx, [esp + 0x88]
call fcn.00411610
mov eax, dword [esp + 0x10]
mov dword [esp + 0x84], ebx
cmp eax, ebx
mov byte [esp + 0x78], 0xd
je 0x4222da
push eax
lea ecx, [esp + 0x14]
call fcn.00411610
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
cmp eax, ebx
mov byte [esp + 0x78], 0xc
je 0x4222f5
push eax
lea ecx, [esp + 0x18]
call fcn.00411610
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x88]
mov byte [esp + 0x78], 0
test eax, eax
je 0x422316
push eax
lea ecx, [esp + 0x8c]
call fcn.00411610
mov eax, dword [esp + 0x90]
mov dword [esp + 0x88], 0
test eax, eax
mov dword [esp + 0x78], 0xffffffff
je 0x422341
push eax
lea ecx, [esp + 0x94]
call fcn.00411610
mov ecx, dword [esp + 0x70]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x6c
ret 0x14