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

Disassembly:
push 0xffffffffffffffff
push 0x493a47
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b30f0]
xor eax, esp
push eax
lea eax, [esp + 0xfc]
mov dword fs:[0], eax
lea eax, [esp + 0x78]
xor edi, edi
push eax
mov dword [esp + 0x1c], edi
call fcn.004683e0
mov dword [esp + 0x104], edi
lea ecx, [esp + 0x78]
push ecx
call fcn.00468490
mov esi, dword [esp + 0x8c]
mov ebp, dword [esp + 0x88]
mov ecx, esi
sub ecx, ebp
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
je 0x422747
mov dword [esp + 0x1c], edi
sub esi, ebp
mov eax, 0x4ec4ec4f
imul esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x2c], eax
jae 0x422747
mov ecx, dword [esp + 0x1c]
add ebp, ecx
cmp ebp, edi
je 0x422747
mov edx, dword [ebp + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp]
mov dword [esp + 0x44], edx
mov edx, dword [ebp + 0x10]
push edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x34], edx
call fcn.0046f5af
fldz
mov dword [esp + 0x98], eax
fstp qword [esp + 0x3c]
add esp, 4
lea esi, [esp + 0xd8]
lea eax, [esp + 0x94]
mov dword [esp + 0x40], edi
mov dword [esp + 0x98], edx
call fcn.00401590
test al, al
je 0x42231a
lea edi, [esp + 0x38]
call fcn.00403760
mov dword [esp + 0x40], 0
test eax, eax
jne 0x422322
mov dword [esp + 0x40], 1
cmp dword [esp + 0x4c], 0
jne 0x42254b
lea esi, [esp + 0x44]
lea eax, [esp + 0x38]
call fcn.004016c0
test al, al
jne 0x42235c
cmp dword [esp + 0x40], 0
jne 0x42254b
fld qword [esp + 0x44]
fcomp qword [esp + 0x38]
fnstsw ax
test ah, 0x44
jp 0x42254b
cmp ebx, 1
jne 0x422578
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x24]
push eax
push ecx
call fcn.00421f80
mov byte [esp + 0x104], bl
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x60]
call fcn.0040fb50
mov byte [esp + 0x104], 2
push 0
call fcn.0046f5af
add esp, 4
push edx
push eax
lea eax, [esp + 0x58]
call fcn.00401600
lea edx, [esp + 0x34]
push edx
call fcn.00403b20
mov byte [esp + 0x104], 3
cmp dword [esp + 0x58], 0
mov ebx, dword [0x4963bc]
jne 0x4223e9
fld qword [esp + 0x50]
lea eax, [esp + 0xe8]
push eax
sub esp, 8
fstp qword [esp]
call ebx
test eax, eax
je 0x4223e9
movzx edi, word [esp + 0xee]
jmp 0x4223ec
or edi, 0xffffffff
cmp dword [esp + 0x58], 0
jne 0x422415
fld qword [esp + 0x50]
lea ecx, [esp + 0xb0]
push ecx
sub esp, 8
fstp qword [esp]
call ebx
test eax, eax
je 0x422415
movzx esi, word [esp + 0xb2]
jmp 0x422418
or esi, 0xffffffff
cmp dword [esp + 0x58], 0
jne 0x422441
fld qword [esp + 0x50]
lea edx, [esp + 0xc0]
push edx
sub esp, 8
fstp qword [esp]
call ebx
test eax, eax
je 0x422441
movzx eax, word [esp + 0xc0]
jmp 0x422444
or eax, 0xffffffff
push edi
push esi
push eax
push 0x49a76c
lea edi, [esp + 0x44]
call fcn.00403e50
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
add esp, 0x10
mov dword [esp + 0x5c], eax
cmp ecx, eax
jbe 0x422478
call fcn.0046fc99
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x9c], edx
mov ebx, eax
cmp ecx, eax
jbe 0x422496
call fcn.0046fc99
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
mov esi, ecx
cmp ecx, eax
jbe 0x4224a1
call fcn.0046fc99
mov edi, dword [esp + 0x60]
lea ecx, [esp + 0x34]
mov eax, esi
mov dword [esp + 0xd4], esi
call fcn.00410290
mov esi, eax
test edi, edi
je 0x4224c6
cmp edi, dword [esp + 0x9c]
je 0x4224cb
call fcn.0046fc99
cmp esi, dword [esp + 0x5c]
jne 0x4224e2
mov eax, dword [esp + 0x70]
sub eax, dword [esp + 0x6c]
sar eax, 2
cmp eax, dword [esp + 0x30]
jae 0x42250c
cmp dword [ebp + 0x28], 0
je 0x4224fa
mov esi, ebp
call fcn.004221a0
test eax, eax
je 0x42250c
mov ecx, dword [esp + 0x24]
push ecx
jmp 0x4224ff
mov edx, dword [esp + 0x24]
push edx
mov dword [esp + 0x1c], 1
call fcn.0040fca0
mov byte [esp + 0x104], 2
lea ecx, [esp + 0x34]
call fcn.004011b0
mov byte [esp + 0x104], 1
lea eax, [esp + 0x60]
push eax
call fcn.0040ec60
mov byte [esp + 0x104], 0
lea ecx, [esp + 0x24]
call fcn.004011b0
cmp dword [esp + 0x18], 0
jne 0x422642
mov eax, dword [esp + 0x2c]
add dword [esp + 0x1c], 0x34
inc eax
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x28]
jae 0x422747
mov esi, dword [esp + 0x8c]
mov ebp, dword [esp + 0x88]
xor edi, edi
jmp 0x422283
cmp ebx, 2
jne 0x4225f6
mov edx, dword [esp + 0x10c]
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.00421f80
mov byte [esp + 0x104], 4
mov eax, dword [0x4b8418]
mov ecx, dword [esp + 0x20]
push eax
push 0
push str.count
push ecx
call dword [0x496358]
mov edi, eax
cmp edi, dword [esp + 0x30]
jge 0x4225e5
cmp dword [ebp + 0x28], 0
je 0x4225d1
mov esi, ebp
call fcn.004221a0
test eax, eax
je 0x4225e5
mov edx, dword [esp + 0x20]
inc edi
push edi
push edx
jmp 0x4225d8
mov eax, dword [esp + 0x20]
inc edi
push edi
push eax
mov dword [esp + 0x20], 1
call fcn.0040fac0
mov byte [esp + 0x104], 0
lea ecx, [esp + 0x20]
jmp 0x42253b
cmp ebx, 3
jne 0x42254b
lea ecx, [esp + 0x44]
push ecx
lea esi, [esp + 0xa8]
lea eax, [esp + 0x3c]
call fcn.00401740
mov ecx, esi
call fcn.00419f90
cmp eax, dword [esp + 0x30]
jge 0x42254b
cmp dword [ebp + 0x28], 0
je 0x42263a
mov esi, ebp
call fcn.004221a0
test eax, eax
je 0x42254b
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x10c]
mov edx, dword [ebp + 0x1c]
add eax, 0x268
test edx, edx
jne 0x422659
xor ecx, ecx
jmp 0x42266f
mov ecx, edx
lea edi, [ecx + 2]
mov edi, edi
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x422660
sub ecx, edi
sar ecx, 1
push edx
mov ebx, ecx
call fcn.004014b0
mov eax, dword [ebp]
mov esi, dword [esp + 0x10c]
mov dword [esi + 0x24c], eax
mov edx, dword [ebp + 4]
mov dword [esi + 0x250], edx
mov eax, dword [ebp + 8]
mov dword [esi + 0x254], eax
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x258], ecx
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x25c], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x260], eax
mov edx, dword [ebp + 0x18]
lea eax, [esi + 0x264]
test edx, edx
jne 0x4226c5
xor ecx, ecx
jmp 0x4226df
mov ecx, edx
lea ebx, [ecx + 2]
lea ebx, [ebx]
mov di, word [ecx]
add ecx, 2
test di, di
jne 0x4226d0
sub ecx, ebx
sar ecx, 1
push edx
mov ebx, ecx
call fcn.004014b0
mov edx, dword [ebp + 0x20]
lea eax, [esi + 0x26c]
test edx, edx
jne 0x4226f8
xor ecx, ecx
jmp 0x42270f
mov ecx, edx
lea ebx, [ecx + 2]
lea ecx, [ecx]
mov di, word [ecx]
add ecx, 2
test di, di
jne 0x422700
sub ecx, ebx
sar ecx, 1
push edx
mov ebx, ecx
call fcn.004014b0
mov ebp, dword [ebp + 0x24]
lea eax, [esi + 0x270]
test ebp, ebp
jne 0x422728
xor ecx, ecx
jmp 0x42273f
mov ecx, ebp
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x422730
sub ecx, esi
sar ecx, 1
push ebp
mov ebx, ecx
call fcn.004014b0
mov edx, dword [0x4b6a0c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4b6a0c
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov bl, 6
mov byte [esp + 0x104], bl
lea ecx, [esp + 0x1c]
push ecx
push 0x66
call fcn.00465cf0
mov edi, dword [esp + 0x114]
add esp, 8
lea edx, [esp + 0x28]
push edx
lea eax, [edi + 0x24c]
push eax
call fcn.00469970
mov byte [esp + 0x104], 7
mov eax, dword [eax]
push eax
lea esi, [esp + 0x20]
call fcn.00466330
add esp, 4
mov byte [esp + 0x104], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4227cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
xor ebx, ebx
cmp ebp, ebx
je 0x4227ea
push esi
call dword [0x496408]
test eax, eax
je 0x4227ea
lea eax, [ebx + 1]
jmp 0x4227ec
xor eax, eax
mov dword [edi + 0x28c], eax
mov byte [esp + 0x104], 0
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422816
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x104], 0xffffffff
lea ecx, [esp + 0x7c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x104], 0xb
mov esi, dword [esp + 0x88]
cmp esi, ebx
je 0x42286d
mov edi, dword [esp + 0x8c]
cmp esi, edi
je 0x422864
lea ebx, [ebx]
push esi
call fcn.004689d0
add esi, 0x34
cmp esi, edi
jne 0x422850
mov esi, dword [esp + 0x88]
push esi
call fcn.0046f1b2
add esp, 4
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x104], 0xffffffff
mov edx, dword [esp + 0x7c]
push edx
call fcn.0046f1b2
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0xfc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret 4