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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x474a78
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push esi
push edi
mov eax, dword [0x47a008]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov edx, ecx
mov dword [esp + 0x30], edx
xor esi, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0xa8], esi
mov dword [esp + 0x1c], esi
mov byte [esp + 0xa8], 1
mov dword [esp + 0x2c], esi
mov byte [esp + 0xa8], 2
mov dword [esp + 0x28], esi
mov byte [esp + 0xa8], 3
mov dword [esp + 0x38], esi
mov byte [esp + 0xa8], 4
mov dword [esp + 0x24], esi
mov byte [esp + 0xa8], 5
mov dword [esp + 0x34], esi
mov ebx, esi
mov byte [esp + 0xa8], 6
mov dword [esp + 0x20], ebx
mov byte [esp + 0xa8], 7
or dword [esp + 0x44], 0xffffffff
mov byte [esp + 0xa8], 8
lea edi, [esp + 0x60]
xor eax, eax
mov dword [esp + 0x14], esi
stosd dword es:[edi], eax
push 9
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x4c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
cmp dword [edx + 0x18], 1
lea edi, [esp + 0x78]
rep stosd dword es:[edi], eax
je 0x422075
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x60]
test eax, eax
je 0x421ff6
cmp dword [esp + 0x60], 0
je 0x421ff6
mov ecx, eax
call fcn.0042a19b
lea eax, [esp + 0x4c]
test eax, eax
je 0x42200c
cmp dword [esp + 0x4c], 0
je 0x42200c
mov ecx, eax
call fcn.0042a19b
lea eax, [esp + 0x14]
test eax, eax
je 0x422022
cmp dword [esp + 0x14], 0
je 0x422022
mov ecx, eax
call fcn.00429e4b
mov eax, dword [esp + 0x44]
test eax, eax
je 0x42202f
cmp eax, 0xffffffff
jne 0x422031
xor eax, eax
mov ecx, dword [esp + 0x30]
push eax
call fcn.00421e63
mov ecx, esi
call fcn.004298d9
lea ecx, [esp + 0x44]
mov byte [esp + 0xa8], 7
call fcn.00424c9a
mov byte [esp + 0xa8], 6
test ebx, ebx
je 0x4225df
mov ecx, ebx
call fcn.0042986c
xor ebx, ebx
mov dword [esp + 0x20], ebx
jmp 0x4225e1
lea eax, [esp + 0x44]
mov ecx, edx
push eax
call fcn.004210d9
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
jns 0x422097
mov ecx, esi
call fcn.004298bc
jmp 0x421fdc
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x78]
push eax
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x18]
call fcn.00429bc8
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x42208b
mov esi, dword [esp + 0x78]
mov dword [esp + 0x10], esi
test esi, esi
je 0x4220c4
js 0x42208b
lea edx, [esp + 0x60]
lea ecx, [esp + 0x14]
call fcn.0042a510
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x42208b
mov edi, dword [esp + 0x68]
lea ecx, [esp + 0x60]
and dword [esp + 0x3c], 0
mov dword [esp + 0x40], edi
call fcn.0042a19b
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x42208b
push 0x409b84
lea eax, [esp + 0x28]
push 0x409bf4
push eax
call fcn.004271d1
mov esi, eax
add esp, 0xc
mov dword [esp + 0x10], esi
test esi, esi
js 0x42208b
test edi, edi
je 0x421fdc
mov edi, dword [esp + 0x24]
lea edx, [esp + 0x60]
lea ecx, [esp + 0x14]
call fcn.0042a510
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x42242e
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x40]
lea edx, [esp + 0x68]
lea ecx, [esp + 0x1c]
call fcn.0042a208
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x42242e
xor esi, esi
cmp dword [esp + 0x18], esi
je 0x422189
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x18], esi
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x18], esi
je 0x4221aa
push dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x1c], esi
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x1c], esi
je 0x4221cb
push dword [esp + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x2c], esi
cmp dword [esp + 0x28], 0
mov dword [esp + 0x2c], esi
je 0x4221ec
push dword [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x28], esi
lea eax, [esp + 0x18]
mov dword [esp + 0x28], esi
push eax
push 0x409bac
push 0x409c24
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0042a2f1
mov esi, eax
add esp, 0x14
mov dword [esp + 0x10], esi
test esi, esi
js 0x42242e
lea eax, [esp + 0x1c]
push eax
push 0x409bc0
push 0x409c24
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0042a2f1
mov esi, eax
add esp, 0x14
mov dword [esp + 0x10], esi
test esi, esi
js 0x42242e
lea eax, [esp + 0x2c]
push eax
push 0x409bc8
push 0x409c24
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0042a2f1
mov esi, eax
add esp, 0x14
mov dword [esp + 0x10], esi
test esi, esi
js 0x42242e
lea eax, [esp + 0x28]
push eax
push 0x409be4
push 0x409c24
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0042a2f1
mov esi, eax
add esp, 0x14
mov dword [esp + 0x10], esi
test esi, esi
js 0x42242e
lea ecx, [esp + 0x4c]
call fcn.0042a19b
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x42242e
lea ecx, [esp + 0x60]
call fcn.0042a19b
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x42242e
cmp dword [esp + 0x28], 0
je 0x4224bb
cmp dword [esp + 0x18], 0
je 0x4224bb
cmp dword [esp + 0x1c], 0
je 0x4224bb
cmp dword [esp + 0x2c], 0
je 0x4224bb
mov esi, dword [esp + 0x34]
test esi, esi
je 0x42231d
mov ecx, esi
call fcn.0042986c
xor esi, esi
mov dword [esp + 0x34], esi
jmp 0x42231f
xor esi, esi
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x34], esi
test ecx, ecx
je 0x422334
call fcn.0042986c
mov dword [esp + 0x38], esi
mov dword [esp + 0x38], esi
test ebx, ebx
je 0x422347
mov ecx, ebx
call fcn.0042986c
mov dword [esp + 0x20], esi
mov ebx, esi
lea eax, [esp + 0x34]
mov dword [esp + 0x20], ebx
push dword [esp + 0x28]
push 0x409bf4
push eax
call fcn.004271d1
mov esi, eax
add esp, 0xc
mov dword [esp + 0x10], esi
test esi, esi
js 0x42242e
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x74]
push eax
mov edx, esi
mov ecx, edi
call fcn.004213b0
mov dword [esp + 0x10], eax
test eax, eax
js 0x4225cb
cmp dword [esp + 0x74], 0
je 0x42247e
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x48]
call fcn.004266e5
mov dword [esp + 0x10], eax
test eax, eax
js 0x4225a1
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x48]
cmp eax, dword [ecx + 0x14]
jne 0x42243a
test esi, esi
je 0x4223d4
mov ecx, esi
call fcn.0042986c
and dword [esp + 0x34], 0
mov ecx, dword [esp + 0x30]
and dword [esp + 0x34], 0
lea eax, [esp + 0x34]
push eax
call fcn.00421290
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x42242e
lea eax, [esp + 0x20]
push eax
push ecx
push dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
push dword [esp + 0x24]
call fcn.00421cab
mov ebx, dword [esp + 0x20]
mov esi, eax
test esi, esi
js 0x4225a5
test ebx, ebx
je 0x4224bb
mov ecx, dword [esp + 0x30]
push ebx
call fcn.0042132c
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
jns 0x42245f
mov ecx, esi
call fcn.004298bc
jmp 0x421fe0
lea eax, [esp + 0x20]
push eax
push ecx
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.00421cab
mov ebx, dword [esp + 0x20]
mov esi, eax
test esi, esi
js 0x4225a5
test ebx, ebx
je 0x4224bb
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x4c]
push ebx
call fcn.00421425
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x42242e
jmp 0x4224bb
push dword [esp + 0x28]
lea eax, [esp + 0x3c]
push 0x409bf4
push eax
call fcn.004271d1
mov esi, eax
add esp, 0xc
mov dword [esp + 0x10], esi
test esi, esi
js 0x42242e
lea eax, [esp + 0x20]
push eax
push ecx
push dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
push dword [esp + 0x24]
call fcn.00421cab
mov ebx, dword [esp + 0x20]
mov esi, eax
test esi, esi
js 0x4225a5
lea ecx, [esp + 0x14]
call fcn.0042a729
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x42242e
lea edx, [esp + 0x60]
lea ecx, [esp + 0x14]
call fcn.0042a510
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x42242e
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x40]
lea edx, [esp + 0x68]
lea ecx, [esp + 0x1c]
call fcn.0042a208
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x42242e
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x14]
call fcn.0042a792
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x42242e
lea ecx, [esp + 0x4c]
call fcn.0042a19b
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x42242e
lea ecx, [esp + 0x60]
call fcn.0042a19b
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x42242e
lea ecx, [esp + 0x14]
call fcn.0042a779
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x42242e
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x14]
mov edx, dword [eax + 8]
call fcn.00429dc6
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x42242e
dec dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
jmp 0x4225bc
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x3c], eax
cmp esi, 0x80072ef1
je 0x4225d4
xor esi, esi
mov dword [esp + 0x10], esi
cmp dword [esp + 0x40], eax
ja 0x42212c
jmp 0x421fe0
mov esi, dword [esp + 0x10]
jmp 0x42242e
xor esi, esi
mov dword [esp + 0x10], esi
jmp 0x421fe0
xor ebx, ebx
mov byte [esp + 0xa8], 5
mov esi, dword [esp + 0x34]
test esi, esi
je 0x4225fc
mov ecx, esi
call fcn.0042986c
mov dword [esp + 0x34], ebx
mov byte [esp + 0xa8], 4
test edi, edi
je 0x422613
mov ecx, edi
call fcn.0042986c
mov dword [esp + 0x24], ebx
mov byte [esp + 0xa8], 3
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x42262c
call fcn.0042986c
mov dword [esp + 0x38], ebx
mov byte [esp + 0xa8], 2
cmp dword [esp + 0x28], 0
je 0x422651
push dword [esp + 0x28]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x28], ebx
mov byte [esp + 0xa8], 1
cmp dword [esp + 0x2c], 0
je 0x422676
push dword [esp + 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0xa8], bl
cmp dword [esp + 0x1c], 0
je 0x42269a
push dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x1c], ebx
or dword [esp + 0xa8], 0xffffffff
cmp dword [esp + 0x18], 0
je 0x4226bf
push dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret