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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [0x5bd06c]
xor eax, esp
mov dword [esp + 0xa4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [esp + 0x34], edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], 0
call fcn.0042cd30
mov dl, byte [esi + 8]
xor ecx, ecx
mov byte [esp + 0x13], dl
mov edx, dword [esi + 4]
mov dword [esp + 0x14], ecx
test edx, edx
je 0x422439
mov eax, dword [edx]
cmp eax, dword [edx + 4]
jne 0x422382
mov byte [esp + 0x13], cl
jmp 0x422439
call fcn.0042cbb0
cmp eax, 3
jge 0x42239a
push 0
mov ecx, edi
call fcn.00422180
jmp 0x4226fb
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
sar ecx, 2
cmp ecx, 0x3fffffff
jbe 0x4223bb
push 0
mov ecx, edi
call fcn.00422180
jmp 0x4226fb
push ecx
lea ecx, [esp + 0x3c]
call fcn.0042ce00
test al, al
jne 0x4223d7
push 0
mov ecx, edi
call fcn.00422180
jmp 0x4226fb
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
sar ecx, 2
sar eax, 2
mov dword [esp + 0x18], edx
test eax, eax
je 0x42272c
mov edx, dword [esp + 0x7c]
test edx, edx
je 0x42238c
push 0
push 0
lea eax, [ecx*4]
push eax
push dword [esp + 0x24]
push 0x20002
push 0
push edx
call dword [0x75f824]
test eax, eax
setne al
test al, al
je 0x42238c
mov ecx, 0x80000
mov byte [esp + 0x13], 1
mov dword [esp + 0x14], ecx
cmp byte [esi + 0x10], 0
mov eax, 0x5a641c
mov dword [esp + 0x64], 1
cmove eax, dword [esp + 0x40]
xor edx, edx
cmp byte [esi + 1], dl
mov dword [esp + 0x40], eax
mov eax, 5
cmovne eax, edx
mov word [esp + 0x68], ax
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x422476
cmp dword [esi + 0x1c], edx
jne 0x422476
cmp dword [esi + 0x20], edx
je 0x422490
mov dword [esp + 0x70], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x74], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x64], 0x101
mov dword [esp + 0x78], eax
cmp dword [esi + 0x14], edx
je 0x4224b1
or ecx, 4
mov dword [esp + 0x14], ecx
call fcn.0042cbb0
cmp eax, 5
mov eax, dword [esp + 0x14]
jge 0x4224b5
or eax, 0x1000000
jmp 0x4224b5
mov eax, dword [esp + 0x14]
push dword [esp + 0x34]
mov ecx, eax
xorps xmm0, xmm0
or ecx, 0x1000000
movaps xmmword [esp + 0x84], xmm0
cmp byte [esi + 0x24], 0
cmove ecx, eax
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x98]
call fcn.00405300
mov eax, dword [esi + 0xc]
test eax, eax
je 0x42257e
or dword [esp + 0x14], 0x400
push 0
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
call dword [0x5756c0]
test eax, eax
jne 0x42251d
push eax
mov ecx, edi
call fcn.00422180
jmp 0x4226ef
cmp dword [esp + 0xa8], 8
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x3c]
push eax
movzx eax, byte [esp + 0x1b]
lea ecx, [esp + 0x9c]
cmovae ecx, dword [esp + 0x9c]
push 0
push dword [esp + 0x24]
push dword [esp + 0x24]
push eax
push 0
push 0
push ecx
push 0
push dword [esi + 0xc]
call dword [0x575004]
push dword [esp + 0x18]
mov esi, eax
call dword [0x5756b8]
test esi, esi
jne 0x4225ce
push esi
mov ecx, edi
call fcn.00422180
jmp 0x4226ef
cmp dword [esp + 0xa8], 8
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x3c]
push eax
movzx eax, byte [esp + 0x1b]
lea ecx, [esp + 0x9c]
cmovae ecx, dword [esp + 0x9c]
push 0
push 0
push dword [esp + 0x24]
push eax
push 0
push 0
push ecx
push 0
call dword [0x575e30]
test eax, eax
jne 0x4225d2
push eax
mov ecx, edi
call fcn.00422180
jmp 0x4226ef
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x80]
mov dword [esp + 0x1c], 0
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call fcn.0042cec0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x422699
push dword [esp + 0x1c]
push eax
call dword [0x575310]
test eax, eax
jne 0x42268f
lea ecx, [esp + 0x1c]
call fcn.0042cf30
push eax
lea ecx, [esp + 0x30]
call fcn.00422180
cmp byte [esp + 0x2c], 0
mov esi, dword [0x575268]
je 0x422641
call esi
jmp 0x422645
mov eax, dword [esp + 0x30]
push 1
push eax
call dword [0x575328]
test eax, eax
setne al
test al, al
je 0x422672
cmp byte [esp + 0x2c], 0
je 0x422662
call esi
jmp 0x422666
mov eax, dword [esp + 0x30]
push 0xea60
push eax
call dword [0x575324]
push 0
mov ecx, edi
call fcn.00422180
lea ecx, [esp + 0x30]
call fcn.00419950
lea ecx, [esp + 0x1c]
call fcn.0042ce80
jmp 0x4226ef
push dword [esp + 0x20]
call dword [0x575308]
cmp byte [esi], 0
je 0x4226aa
push 0xffffffffffffffff
push dword [esp + 0x20]
call dword [0x575324]
lea ecx, [esp + 0x1c]
call fcn.0042cf30
push eax
mov ecx, edi
call fcn.00422180
lea ecx, [esp + 0x1c]
call fcn.00419950
lea ecx, [esp + 0x20]
call fcn.00419950
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call fcn.00419950
lea ecx, [esp + 0x1c]
call fcn.00419950
lea ecx, [esp + 0x94]
call fcn.004051f0
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x422716
push eax
call dword [0x75f82c]
push dword [esp + 0x7c]
call fcn.00482276
add esp, 4
mov ecx, dword [esp + 0xac]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00482224
mov esp, ebp
pop ebp
ret
push 0x5a7550
call fcn.0047f3ba
int3