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

Disassembly:
push 0xffffffffffffffff
push 0x78572b
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x84dea4]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x84dea4]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x1e4], edi
jne 0x641acd
cmp dword [esi + 0x12c], edi
je 0x641acd
push edi
mov dword [esi + 0x1e8], edi
call fcn.0063f730
mov ecx, esi
call fcn.00640fa0
mov ebx, eax
cmp dword [esi + 0x1cc], ebx
mov dword [esp + 0x1c], ebx
je 0x6416e4
mov ecx, esi
call fcn.006412b0
push edi
mov ecx, esi
call fcn.00641400
mov ecx, esi
call fcn.00641580
mov dword [esi + 0x1cc], ebx
mov ecx, esi
mov dword [esi + 0x138], edi
call fcn.006408b0
mov ecx, esi
call fcn.00640190
mov ecx, esi
call fcn.006405b0
mov eax, dword [esi + 0x184]
mov ecx, dword [eax + 0x1cc]
mov edx, dword [esi + 0x188]
mov dword [esp + 0x7c], ecx
mov ecx, dword [edx + 0x1cc]
mov dword [esp + 0x68], ecx
mov ecx, dword [esi + 0x1f8]
mov dword [eax + 0x1cc], ecx
mov ecx, dword [esi + 0x188]
mov eax, dword [esi + 0x1f8]
mov dword [ecx + 0x1cc], eax
mov ecx, esi
call fcn.006409c0
cmp ebx, edi
mov dword [esp + 0x6c], eax
jne 0x641761
mov ecx, esi
call fcn.00640680
test eax, eax
je 0x641761
mov dword [esp + 0x24], 1
jmp 0x641769
cmp ebx, edi
mov dword [esp + 0x24], edi
jne 0x64177c
mov ecx, esi
call fcn.006406a0
test eax, eax
mov dword [esp + 0x18], 1
jne 0x641780
mov dword [esp + 0x18], edi
mov ecx, esi
call fcn.00640980
mov ecx, dword [esi + 0x1a8]
mov edx, dword [ecx]
mov ebp, eax
mov eax, dword [edx + 0x5c]
mov dword [esp + 0x64], ebp
call eax
mov ecx, dword [esi + 0x18c]
push eax
call fcn.004eed10
cmp ebp, edi
mov byte [esp + 0x74], al
jne 0x641880
cmp ebx, edi
jne 0x641880
mov dword [esp + 0x2c], edi
or ebp, 0xffffffff
mov dword [esp + 0x28], ebp
mov ecx, dword [esi + 0x1ac]
mov edx, dword [ecx]
mov eax, dword [edx + 0x5c]
call eax
sub eax, 1
mov dword [esp + 0x78], eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
cmp ebx, edi
mov dword [esp + 0x294], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], 7
mov byte [esp + 0x3c], 0x3f
mov byte [esp + 0x3d], 0
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov ecx, str.WESTRING_ITEM
jne 0x641830
mov ecx, str.WESTRING_UNITS
push edi
push 0x104
lea edx, [esp + 0x18c]
call fcn.004da2f0
lea ecx, [esp + 0x184]
push ecx
mov ecx, esi
call fcn.0063f6e0
mov ebp, ebx
neg ebp
sbb ebp, ebp
and ebp, 0xfffffffd
add ebp, 5
xor eax, eax
cmp ebp, edi
mov dword [esp + 0x70], ebp
mov dword [esp + 0x20], eax
jle 0x641a74
cmp ebx, edi
je 0x6418af
mov eax, dword [eax*4 + 0x7e8864]
mov dword [esp + 0x14], eax
jmp 0x6418bc
cmp ebx, edi
mov dword [esp + 0x2c], 1
je 0x6417be
cmp dword [esi + 0x1fc], edi
je 0x6417be
mov ecx, esi
call fcn.006409f0
mov dword [esp + 0x28], eax
or ebp, 0xffffffff
jmp 0x6417c5
mov edx, dword [eax*4 + 0x7e8850]
mov dword [esp + 0x14], edx
mov eax, edx
cmp dword [esi + 0x1ec], edi
jne 0x6418d6
cmp eax, 6
je 0x641a61
cmp eax, 7
je 0x641a61
cmp dword [esi + 0x1dc], edi
jne 0x6418e7
cmp eax, 3
je 0x641a61
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x34], eax
xor eax, eax
cmp dword [esi + 0x1d4], edi
setne al
cmp dword [esi + 0x1d8], edi
je 0x64190b
or eax, 2
jmp 0x64190e
and eax, 0xfffffffd
cmp dword [esi + 0x1a4], edi
je 0x641921
cmp dword [esp + 0x18], edi
jne 0x641921
or eax, 4
jmp 0x641924
and eax, 0xfffffffb
cmp dword [esi + 0x1f0], edi
je 0x641931
or eax, 8
jmp 0x641934
and eax, 0xfffffff7
cmp dword [esi + 0x1f4], edi
je 0x641941
or eax, 0x10
jmp 0x641944
and eax, 0xffffffef
cmp dword [esi + 0x1fc], edi
je 0x641951
or eax, 0x40
jmp 0x641954
and eax, 0xffffffbf
cmp dword [esp + 0x18], edi
je 0x641969
or eax, 0x20
or eax, 0x100
or eax, 0x400
jmp 0x641976
and eax, 0xffffffdf
and eax, 0xfffffeff
and eax, 0xfffffbff
cmp dword [esp + 0x24], edi
je 0x641983
or eax, 0x80
jmp 0x641988
and eax, 0xffffff7f
mov edx, dword [esp + 0x64]
mov cl, byte [esi + 0x1d0]
or eax, 0x200
neg edx
sbb dl, dl
mov dword [esp + 0x38], eax
mov byte [esp + 0x3c], cl
and edx, dword [esp + 0x74]
cmp dword [esp + 0x2c], edi
mov byte [esp + 0x3d], dl
je 0x6419bb
mov eax, dword [esp + 0x78]
mov dword [esp + 0x40], eax
jmp 0x6419c3
mov dword [esp + 0x40], 0xffffffff
mov edx, dword [esi + 0x184]
mov ecx, dword [esp + 0x28]
mov eax, dword [esi + 0x188]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], edx
lea edx, [esp + 0x54]
lea ecx, [esp + 0x30]
mov dword [esp + 0x50], eax
call fcn.005f50d0
mov ebx, dword [esp + 0x58]
cmp ebx, edi
je 0x641a5d
cmp dword [esp + 0x20], edi
jle 0x641a2a
mov ecx, dword [esp + 0x14]
push 0x104
lea edx, [esp + 0x84]
mov byte [esp + 0x84], 0
call fcn.0051c420
lea ecx, [esp + 0x80]
push ecx
mov ecx, esi
call fcn.0063fe20
mov ebx, dword [esp + 0x58]
cmp ebx, edi
jle 0x641a5d
xor edx, edx
cmp dword [esp + 0x14], 3
sete dl
mov ebp, edx
lea ebx, [ebx]
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + edi*4]
push ebp
push ecx
mov ecx, esi
call fcn.00640ce0
add edi, 1
cmp edi, ebx
jl 0x641a40
mov ebp, dword [esp + 0x70]
xor edi, edi
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add eax, 1
cmp eax, ebp
mov dword [esp + 0x20], eax
jl 0x64186f
mov edx, dword [esi + 0x184]
mov eax, dword [esp + 0x7c]
mov dword [edx + 0x1cc], eax
mov ecx, dword [esi + 0x188]
mov edx, dword [esp + 0x68]
mov dword [ecx + 0x1cc], edx
mov ecx, esi
mov dword [esi + 0x138], 1
call fcn.0063f220
push 1
mov ecx, esi
call fcn.0063f730
mov ecx, esi
call fcn.00640e20
mov eax, dword [esp + 0x5c]
cmp eax, edi
je 0x641ad7
push edi
push 0xfffffffffffffffe
push 0x829be4
push eax
call sub.Storm.dll_Ordinal_403
jmp 0x641ad7
mov dword [esi + 0x1e8], 1
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x274]
xor ecx, esp
call fcn.00735f58
add esp, 0x284
ret