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

Disassembly:
mov ecx, dword [0x98d270]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x3a0]
cmp eax, dword [ecx + 8]
jbe 0x68226d
sub esp, 0x420
mov eax, dword [esp + 0x424]
mov ecx, dword [eax + 0x138]
test ecx, ecx
je 0x6817a7
mov edx, dword [eax + 0x13c]
mov dword [esp + 0x364], ecx
mov dword [esp + 0x368], edx
mov ecx, dword [esp + 0x364]
test ecx, ecx
je 0x68179f
movzx edx, byte [ecx + 0xf]
nop
mov ebx, edx
and edx, 0x1f
test bl, 0x20
jne 0x681796
or edx, 0x80
mov ebx, dword [esp + 0x368]
jmp 0x6817ad
xor edx, edx
xor ecx, ecx
xor ebx, ebx
jmp 0x6817ad
xor edx, edx
xor ecx, ecx
xor ebx, ebx
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0x1f
call fcn.004ac2c0
mov eax, dword [esp + 0x18]
and eax, 0x1f
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x14]
cmp eax, 9
ja 0x681800
cmp eax, 7
jne 0x6817e4
mov ecx, dword [ecx]
xor ebx, ebx
jmp 0x681826
cmp eax, 8
jne 0x6817f0
movzx ecx, byte [ecx]
xor ebx, ebx
jmp 0x681826
cmp eax, 9
jne 0x682232
movzx ecx, word [ecx]
xor ebx, ebx
jmp 0x681826
cmp eax, 0xa
jne 0x68180b
mov ecx, dword [ecx]
xor ebx, ebx
jmp 0x681826
cmp eax, 0xb
jne 0x681819
mov edx, dword [ecx]
mov ebx, dword [ecx + 4]
mov ecx, edx
jmp 0x681826
cmp eax, 0xc
jne 0x682232
mov ecx, dword [ecx]
xor ebx, ebx
test ecx, ecx
sete dl
test ebx, ebx
sete bl
and ebx, edx
test bl, bl
jne 0x681d45
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x424]
movzx ebx, byte [edx + 0x294]
test bl, bl
je 0x68188d
lea edi, [esp + 0x188]
xor eax, eax
call fcn.00468bf8
mov ecx, dword [edx + 0x78]
lea ebx, [0x6fcbe0]
cmp ecx, ebx
jne 0x68221c
mov esi, dword [edx + 0x7c]
lea edi, [esp + 0x188]
call fcn.00468f10
mov ecx, dword [esp + 0x1a4]
mov ebx, dword [esp + 0x20]
sub ebx, ecx
jmp 0x6818c8
lea edi, [esp + 0x268]
xor eax, eax
call fcn.00468bf4
mov ecx, dword [edx + 0x78]
lea ebx, [0x6fc860]
cmp ecx, ebx
jne 0x682206
mov esi, dword [edx + 0x7c]
lea edi, [esp + 0x268]
call fcn.00468ee8
mov ecx, dword [esp + 0x280]
mov ebx, dword [esp + 0x20]
sub ebx, ecx
mov dword [esp], edx
mov dword [esp + 4], ebx
call fcn.0067ac90
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x424]
mov edx, dword [ecx + 0x2ac]
add edx, 0xfffffffc
cmp eax, edx
jbe 0x6818f6
mov edx, dword [0x95da80]
xor ebx, ebx
jmp 0x681929
mov edx, dword [ecx + 0x28c]
cmp edx, eax
jb 0x6821ff
mov ebx, dword [ecx + 0x290]
sub edx, eax
sub ebx, eax
neg ebx
sar ebx, 0x1f
and ebx, eax
cmp edx, 3
jbe 0x6821f3
mov ebp, dword [ecx + 0x288]
mov ebx, dword [ebx + ebp]
xor edx, edx
test edx, edx
jne 0x681d33
mov dword [esp + 0x50], eax
lea edi, [esp + 0x68]
xor eax, eax
call fcn.00468c24
cmp ebx, 1
je 0x6819da
cmp ebx, 2
je 0x6819ac
cmp ebx, 3
jne 0x681981
lea edi, [esp + 0xf8]
call fcn.00468c24
lea ecx, [0x6f3580]
mov dword [esp], ecx
lea edx, [esp + 0xf8]
mov dword [esp + 4], edx
call fcn.004cf4a0
mov ecx, dword [esp + 8]
jmp 0x681a06
lea edi, [esp + 0xc8]
call fcn.00468c24
lea ecx, [0x6f3580]
mov dword [esp], ecx
lea edx, [esp + 0xc8]
mov dword [esp + 4], edx
call fcn.004cf4a0
mov ecx, dword [esp + 8]
jmp 0x681a06
lea edi, [esp + 0x128]
call fcn.00468c24
lea ecx, [0x6f3580]
mov dword [esp], ecx
lea edx, [esp + 0x128]
mov dword [esp + 4], edx
call fcn.004cf4a0
mov ecx, dword [esp + 8]
add ecx, 0xfffffffc
jmp 0x681a06
lea edi, [esp + 0x158]
call fcn.00468c24
lea ecx, [0x6f3580]
mov dword [esp], ecx
lea edx, [esp + 0x158]
mov dword [esp + 4], edx
call fcn.004cf4a0
mov ecx, dword [esp + 8]
add ecx, 0xfffffff8
mov eax, dword [esp + 0x50]
lea edx, [ecx + eax]
cmp eax, edx
setb bl
test ecx, ecx
xchg ebp, ebx
seta bl
xchg ebp, ebx
xchg ebp, eax
cmp al, bl
xchg ebp, eax
jne 0x681cc1
mov ebx, dword [esp + 0x424]
mov ebp, dword [ebx + 0x2ac]
cmp ebp, eax
jbe 0x681a3a
cmp ebp, edx
jae 0x681aa5
mov dword [esp + 0x36c], 0
mov dword [esp + 0x370], 0
lea eax, [0x6bd160]
mov dword [esp + 0x36c], eax
lea eax, [0x773318]
mov dword [esp + 0x370], eax
mov eax, dword [ebx + 0x2c0]
mov dword [esp], eax
lea eax, [esp + 0x36c]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call fcn.0065ec20
mov dword [esp + 0x428], 0
add esp, 0x420
ret
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edx
lea edi, [esp + 0x98]
lea esi, [esp + 0x68]
call fcn.004690c8
lea eax, [0x6f3580]
mov dword [esp], eax
lea ecx, [esp + 0x98]
mov dword [esp + 4], ecx
call fcn.004cf4a0
mov eax, dword [esp + 8]
mov dword [esp + 0x40], eax
lea ecx, [0x6bd4a0]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0044e050
mov eax, dword [esp + 0x424]
mov edx, dword [eax + 0x290]
mov ecx, dword [esp + 0x30]
cmp edx, ecx
jb 0x6821ee
mov ebx, dword [esp + 0x50]
cmp ebx, ecx
ja 0x6821e7
mov ecx, dword [eax + 0x288]
sub edx, ebx
neg edx
sar edx, 0x1f
and edx, ebx
add ecx, edx
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x40]
cmp edx, ebx
jl 0x681b34
mov edx, ebx
mov ebp, dword [esp + 0xc]
mov dword [esp + 0x35c], ebp
cmp ebp, ecx
je 0x681b53
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00469320
nop
lea eax, [0x6dab20]
mov dword [esp], eax
call fcn.0040c4f0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, dword [0x98d4e0]
test ecx, ecx
jne 0x681b83
mov ecx, dword [esp + 0x35c]
jmp 0x681b91
call fcn.00468990
mov ecx, dword [esp + 0x35c]
mov dword [edi], ecx
mov dword [eax], ecx
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xffffffff
lea ecx, [0x773e00]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea eax, [0x775a8c]
mov dword [esp + 8], eax
lea eax, [0x98d0c0]
mov dword [esp + 0xc], eax
lea eax, [0x6ab020]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x14], eax
call fcn.004ce350
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x681c4f
lea eax, [0x6db5a0]
mov dword [esp], eax
call fcn.0040c4f0
mov eax, dword [esp + 4]
mov dword [esp + 0x360], eax
lea ecx, [0x6f3580]
mov dword [esp], ecx
lea edx, [esp + 0x68]
mov dword [esp + 4], edx
call fcn.00409b50
mov eax, dword [esp + 8]
lea ecx, [0x6f3580]
mov edx, dword [esp + 0x360]
mov dword [edx], ecx
mov ecx, dword [0x98d4e0]
test ecx, ecx
je 0x681c41
call fcn.004689a0
mov dword [edi], eax
mov ecx, dword [edx + 4]
mov dword [edi + 4], ecx
mov dword [edx + 4], eax
mov eax, dword [esp + 0x6c]
xor ecx, ecx
jmp 0x681d86
mov dword [esp + 0x36c], 0
mov dword [esp + 0x370], 0
lea eax, [0x6bd160]
mov dword [esp + 0x36c], eax
lea eax, [0x773320]
mov dword [esp + 0x370], eax
mov eax, dword [esp + 0x424]
mov eax, dword [eax + 0x2c0]
mov dword [esp], eax
lea eax, [esp + 0x36c]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call fcn.0065ec20
mov dword [esp + 0x428], 0
add esp, 0x420
ret
mov dword [esp + 0x36c], 0
mov dword [esp + 0x370], 0
lea eax, [0x6bd160]
mov dword [esp + 0x36c], eax
lea eax, [0x773318]
mov dword [esp + 0x370], eax
mov eax, dword [esp + 0x424]
mov eax, dword [eax + 0x2c0]
mov dword [esp], eax
lea eax, [esp + 0x36c]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call fcn.0065ec20
mov dword [esp + 0x428], 0
add esp, 0x420
ret
mov dword [esp + 0x428], 0
add esp, 0x420
ret
mov dword [esp + 0x428], 0
add esp, 0x420
ret
mov dword [eax + 0xc], edi
xchg ebp, ebx
setne bl
xchg ebp, ebx
lea esi, [edi + edi*2]
mov dword [ecx + esi*4 - 0xc], ebx
mov dword [ecx + esi*4 - 8], edx
lea ebx, [ecx + esi*4 - 4]
xchg ebp, eax
mov byte [ebx], al
xchg ebp, eax
mov ebx, dword [esp + 0x4c]
lea ecx, [ebx + 1]
mov ebx, dword [esp + 0x3c]
add ebx, 8
mov edx, eax
mov eax, ebx
cmp dword [esp + 0x70], ecx
jle 0x681f17
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x424]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0067ac90
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x424]
mov edx, dword [ecx + 0x2ac]
add edx, 0xfffffffc
cmp eax, edx
jbe 0x681dcd
mov ebx, dword [0x95da80]
xor ebp, ebp
jmp 0x681e05
mov ebx, dword [ecx + 0x28c]
cmp ebx, eax
jb 0x6821e0
mov ebp, dword [ecx + 0x290]
sub ebx, eax
sub ebp, eax
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, eax
cmp ebx, 3
jbe 0x6821d4
mov esi, dword [ecx + 0x288]
mov ebp, dword [ebp + esi]
xor ebx, ebx
test ebx, ebx
jne 0x681f1e
test ebp, 1
je 0x681e1c
mov ebx, ebp
and ebx, 0xfffffffe
jmp 0x681e1e
mov ebx, ebp
lea esi, [eax + 4]
cmp edx, esi
jae 0x681e2f
mov eax, dword [0x95da80]
xor edx, edx
jmp 0x681e6c
mov edx, dword [ecx + 0x28c]
cmp edx, esi
jb 0x6821cb
mov edi, dword [ecx + 0x290]
sub edi, eax
sub edx, eax
add edx, 0xfffffffc
add edi, 0xfffffffc
xchg edi, ebx
neg ebx
xchg edi, ebx
sar edi, 0x1f
and esi, edi
cmp edx, 3
jbe 0x6821bf
mov edx, dword [ecx + 0x288]
mov edx, dword [esi + edx]
xor eax, eax
test eax, eax
jne 0x681f1e
mov eax, dword [esp + 0x360]
mov esi, dword [eax + 0x10]
mov edi, dword [eax + 0xc]
inc edi
mov ecx, dword [eax + 8]
cmp esi, edi
jb 0x681e94
test ebp, 1
jmp 0x681d57
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x58], ebx
mov dword [esp + 0x28], edx
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [esp + 8], esi
mov dword [esp + 0xc], 1
lea eax, [0x6db4a0]
mov dword [esp + 0x10], eax
call fcn.0044e1d0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x360]
mov dword [ebx + 0x10], eax
mov eax, dword [0x98d4e0]
test eax, eax
jne 0x681eed
mov eax, dword [esp + 0x2c]
test eax, 1
jmp 0x681f03
call fcn.004689a0
mov dword [edi], ecx
mov eax, dword [ebx + 8]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x2c]
test eax, 1
mov dword [ebx + 8], ecx
mov eax, ebx
mov ebx, dword [esp + 0x58]
mov edi, edx
mov edx, dword [esp + 0x28]
jmp 0x681d57
mov ecx, dword [esp + 0x424]
mov eax, dword [esp + 0x90]
test eax, eax
je 0x681f2d
xor edx, edx
jmp 0x681f57
mov eax, dword [esp + 0x360]
mov dword [esp + 0x428], eax
add esp, 0x420
ret
mov dword [eax + edx + 8], esi
mov ebx, dword [esp + 0x48]
lea edx, [ebx + 1]
lea eax, [ebp + 4]
mov ecx, dword [esp + 0x424]
cmp edx, 0x400
jge 0x681f2d
mov dword [esp + 0x48], edx
mov dword [esp + 0x38], eax
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0067ac90
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x424]
mov edx, dword [ecx + 0x2ac]
add edx, 0xfffffffc
cmp eax, edx
jbe 0x681f95
mov edx, dword [0x95da80]
xor ebx, ebx
jmp 0x681fc8
mov edx, dword [ecx + 0x28c]
cmp edx, eax
jb 0x6821b8
mov ebx, dword [ecx + 0x290]
sub edx, eax
sub ebx, eax
neg ebx
sar ebx, 0x1f
and eax, ebx
cmp edx, 3
jbe 0x6821ac
mov ebx, dword [ecx + 0x288]
mov ebx, dword [eax + ebx]
xor edx, edx
test edx, edx
jne 0x681f2d
mov dword [esp + 0x24], ebx
lea edi, [esp + 0x39c]
xor eax, eax
call fcn.00468c25
mov ecx, dword [esp + 0x424]
mov edx, dword [ecx + 0xac]
mov ebp, dword [ecx + 0xb0]
mov esi, dword [esp + 0x38]
xor edi, edi
jmp 0x682109
lea edi, [esp + 0x39c]
call fcn.00468c25
lea edi, [esp + 0x3c8]
lea esi, [esp + 0x39c]
call fcn.004690d2
mov ecx, dword [esp + 0x360]
mov edx, dword [ecx + 0x1c]
mov ebp, dword [ecx + 0x18]
inc ebp
mov esi, dword [esp + 0x3cc]
mov edi, dword [esp + 0x3d0]
mov eax, dword [ecx + 0x14]
cmp edx, ebp
jae 0x6820b9
mov dword [esp + 0x358], esi
mov dword [esp + 0x54], edi
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x6db520]
mov dword [esp + 0x10], eax
call fcn.0044e1d0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x360]
mov dword [ebx + 0x1c], eax
mov eax, dword [0x98d4e0]
test eax, eax
je 0x68209c
call fcn.004689a0
mov dword [edi], ecx
mov eax, dword [ebx + 0x14]
mov dword [edi + 4], eax
mov dword [ebx + 0x14], ecx
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x358]
mov edi, dword [esp + 0x54]
mov eax, ecx
mov ebp, edx
mov ecx, dword [esp + 0x360]
mov dword [ecx + 0x18], ebp
lea edx, [ebp - 1]
shl edx, 4
mov ebp, dword [esp + 0x38]
mov dword [eax + edx], ebp
mov dword [eax + edx + 4], ebx
mov dword [eax + edx + 0xc], edi
mov ebx, dword [0x98d4e0]
test ebx, ebx
je 0x681f42
call fcn.004689a0
mov dword [edi], esi
mov ebx, dword [eax + edx + 8]
mov dword [edi + 4], ebx
jmp 0x681f42
add edx, 0x2c
mov ecx, dword [esp + 0x60]
inc ecx
mov ebx, dword [esp + 0x24]
mov esi, edi
mov edi, ecx
mov ecx, dword [esp + 0x424]
cmp edi, ebp
jge 0x682000
mov dword [esp + 0x60], edi
lea edi, [esp + 0x3f4]
mov esi, edx
call fcn.004690d2
mov ecx, dword [esp + 0x400]
mov esi, dword [esp + 0x404]
mov dword [esp + 0x5c], esi
mov edi, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0x44], eax
xor eax, eax
jmp 0x682162
mov esi, dword [esp + 0x35c]
add esi, 0x28
inc ebx
mov edi, dword [esp + 0x5c]
mov edi, ecx
mov dword [esp + 0x44], ebx
mov ecx, esi
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x44]
cmp ebx, esi
jge 0x6820f2
mov dword [esp + 0x35c], ecx
lea edi, [esp + 0x374]
mov esi, ecx
call fcn.004690dc
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x394], ecx
jne 0x682143
lea edi, [esp + 0x39c]
lea esi, [esp + 0x3f4]
call fcn.004690d2
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x38]
jmp 0x68200c
mov eax, 3
mov ecx, edx
call fcn.00468a00
mov ecx, edx
call fcn.00468a70
mov eax, 3
mov ecx, edx
call fcn.00468a00
mov eax, esi
mov ecx, edx
call fcn.00468a70
mov eax, 3
mov ecx, ebx
call fcn.00468a00
mov ecx, ebx
call fcn.00468a70
mov eax, ebx
call fcn.00468a70
call fcn.00468a50
mov eax, 3
mov ecx, edx
call fcn.00468a00
mov ecx, edx
call fcn.00468a70
mov dword [esp], ecx
mov dword [esp + 4], ebx
lea eax, [0x6be780]
mov dword [esp + 8], eax
call fcn.004099c0
mov dword [esp], ecx
mov dword [esp + 4], ebx
lea eax, [0x6be780]
mov dword [esp + 8], eax
call fcn.004099c0
lea eax, [0x6d5460]
mov dword [esp], eax
call fcn.0040c4f0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x12
lea ecx, [0x710cf2]
mov dword [eax], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 8], ecx
lea ecx, [0x6c72a0]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004385d0
nop
call fcn.00467590
jmp fcn.00681730