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

Disassembly:
mov ecx, dword [0x4e73e0]
sub esp, 0x58
push ebx
mov ebx, dword [esp + 0x70]
push ebp
mov ebp, dword [esp + 0x64]
mov edx, 1
cmp dword [ecx + 0x5cc], edx
push esi
push edi
jne 0x967a9
or dword [ebp + 0x878], 0xf
mov eax, dword [ebp + 0x7e0]
mov esi, dword [esp + 0x84]
mov dword [esi], eax
cmp dword [ecx + 0x5cc], edx
jne 0x967d8
mov ecx, dword [0x5271fc]
mov ecx, dword [ecx + 0x1c]
lea edx, [ecx + ecx*2]
lea ecx, [eax + edx*2]
mov edi, dword [ecx*4 + 0x4e75b8]
jmp 0x967de
mov edi, dword [0x5271fc]
test edi, edi
jne 0x967ee
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x58
ret 0x1c
mov edx, dword [edi + eax*4 + 0xb6c]
mov esi, ebx
mov dword [ebx], edx
call fcn.00096500
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x80]
mov dword [ecx], eax
mov eax, dword [ebx]
mov dword [ebp + 0x7d8], eax
mov ecx, dword [ecx]
mov dword [ebp + 0x7dc], ecx
mov dword [edx], 0
test byte [ebp + 0x87a], 0x10
je 0x97753
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [0x4e73e0]
mov dword [esp + 0x84], ecx
mov ecx, dword [eax + 0x2330]
push 0x37
mov dword [esp + 0x84], edx
mov edx, dword [eax + 0x233c]
push ecx
mov ecx, dword [eax + 0x2338]
lea esi, [esp + 0x2c]
mov dword [esp + 0x74], 0x3c
call fcn.000354d0
mov eax, dword [0x4e73e0]
mov ecx, dword [eax + 0x2330]
push 0x18
lea edx, [esp + 0x3c]
push edx
mov edx, dword [eax + 0x233c]
push 0x126
push ecx
mov ecx, dword [eax + 0x2338]
call fcn.000355b0
add esp, 0x18
test eax, eax
je 0x968b7
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
test byte [ebx + 2], 0xff
je 0x96969
mov edx, dword [ebp + 0x7e0]
push 0x20
lea eax, [esp + 0x4c]
push eax
mov eax, dword [0x4e73e0]
mov dword [esp + 0x50], edx
mov ecx, dword [eax + 0x2330]
mov edx, dword [eax + 0x233c]
push 0x10f
push ecx
mov ecx, dword [eax + 0x2338]
call fcn.000355b0
add esp, 0x10
test eax, eax
jne 0x96969
mov eax, dword [esp + 0x54]
test eax, eax
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x6c], edx
je 0x96969
test ecx, ecx
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
jge 0x9692f
fadd dword [0x41bc68]
test eax, eax
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
jge 0x96941
fadd dword [0x41bc68]
fdivp st(1)
fcom dword [0x41c148]
fnstsw ax
test ah, 1
jne 0x96967
fcomp dword [0x41c324]
fnstsw ax
test ah, 5
jp 0x96969
mov dword [esp + 0x10], 1
jmp 0x96969
fstp st(0)
cmp dword [edi + 0xbe4], 0
je 0x96984
mov eax, dword [edi + 0xbec]
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x30], 0
je 0x9699e
mov ecx, dword [esp + 0x34]
test dword [ebp + 0x7d8], ecx
je 0x9699e
mov ecx, 1
jmp 0x969a0
xor ecx, ecx
mov eax, dword [esp + 0x70]
cmp eax, 0x2d0
je 0x969ba
cmp eax, 0x2c0
mov dword [esp + 0x20], 0
jne 0x969c2
mov dword [esp + 0x20], 1
mov edx, dword [esp + 0x78]
mov esi, dword [ebx]
mov eax, dword [edx]
and esi, 0xff00
cmp eax, 5
mov dword [esp + 0x28], esi
je 0x969f6
cmp eax, 6
je 0x969f6
cmp eax, 9
je 0x969f6
cmp eax, 0xa
je 0x969f6
cmp eax, 7
je 0x969f6
cmp eax, 8
je 0x969f6
xor eax, eax
jmp 0x969fb
mov eax, 1
test ecx, ecx
mov dword [esp + 0x14], eax
mov edi, 4
je 0x96aa5
mov ecx, dword [esp + 0x3c]
test ecx, ecx
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], ecx
je 0x96a72
test ebx, ebx
mov dword [esp + 0x2c], ebx
fild dword [esp + 0x2c]
jge 0x96a38
fadd dword [0x41bc68]
test ecx, ecx
mov dword [esp + 0x2c], ecx
fild dword [esp + 0x2c]
jge 0x96a4a
fadd dword [0x41bc68]
fdivp st(1)
fcom dword [0x41c148]
fnstsw ax
test ah, 1
jne 0x96a70
fcomp dword [0x41c324]
fnstsw ax
test ah, 5
jp 0x96a72
mov dword [esp + 0x10], 1
jmp 0x96a72
fstp st(0)
mov eax, dword [esp + 0x7c]
mov dword [ebp + 0x788], ebx
mov dword [ebp + 0x78c], ecx
mov dword [ebp + 0x794], edi
mov edx, dword [eax]
mov eax, dword [esp + 0x6c]
push edx
push eax
push 3
push ecx
push ebp
call fcn.00096250
test eax, eax
jne 0x9781f
mov eax, dword [esp + 0x14]
test esi, esi
je 0x96ca4
test eax, eax
jne 0x96cac
mov ecx, dword [esp + 0x78]
mov eax, dword [ecx]
cmp eax, 2
jne 0x96acd
mov dword [esp + 0x80], 0x1e0
jmp 0x96add
cmp eax, 3
jne 0x96ae8
mov dword [esp + 0x80], 0x240
mov dword [esp + 0x84], 0x2d0
mov ecx, dword [esp + 0x24]
cmp ecx, 0x102
je 0x96b60
cmp ecx, 0x101
je 0x96b60
cmp ecx, 0x207
je 0x96b10
cmp ecx, 0x208
jne 0x96c6b
mov esi, dword [esp + 0x7c]
mov eax, dword [esp + 0x6c]
mov ebx, 0x2d0
mov edi, 4
mov dword [ebp + 0x788], ebx
mov dword [ebp + 0x78c], 0x240
mov dword [ebp + 0x794], edi
mov edx, dword [esi]
push edx
push eax
push 3
push 0x240
push ebp
call fcn.00096250
test eax, eax
je 0x96c6f
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x58
ret 0x1c
cmp eax, 2
mov esi, dword [esp + 0x7c]
jne 0x96bde
mov edx, dword [esp + 0x6c]
mov ebx, 0x2d0
mov edi, 4
mov dword [ebp + 0x788], ebx
mov dword [ebp + 0x78c], 0x200
mov dword [ebp + 0x794], edi
mov ecx, dword [esi]
push ecx
push edx
push 3
push 0x200
push ebp
call fcn.00096250
test eax, eax
jne 0x9781f
mov ecx, dword [esp + 0x6c]
mov ebx, 0x280
mov dword [ebp + 0x788], ebx
mov dword [ebp + 0x78c], 0x1e0
mov dword [ebp + 0x794], edi
mov eax, dword [esi]
push eax
push ecx
push 3
push 0x1e0
push ebp
call fcn.00096250
test eax, eax
jne 0x9781f
mov edx, dword [esp + 0x78]
cmp dword [edx], 3
jne 0x96c6f
mov ecx, dword [esp + 0x6c]
mov ebx, 0x2d0
mov edi, 4
mov dword [ebp + 0x788], ebx
mov dword [ebp + 0x78c], 0x220
mov dword [ebp + 0x794], edi
mov eax, dword [esi]
push eax
push ecx
push 3
push 0x220
push ebp
call fcn.00096250
test eax, eax
jne 0x9781f
mov eax, dword [esp + 0x6c]
mov ebx, 0x320
mov dword [ebp + 0x788], ebx
mov dword [ebp + 0x78c], 0x258
mov dword [ebp + 0x794], edi
mov edx, dword [esi]
push edx
push eax
push 3
push 0x258
push ebp
call fcn.00096250
test eax, eax
je 0x96c6f
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x58
ret 0x1c
mov esi, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
mov ebx, dword [esp + 0x84]
mov edx, dword [esp + 0x6c]
mov edi, 4
mov dword [ebp + 0x788], ebx
mov dword [ebp + 0x78c], eax
mov dword [ebp + 0x794], edi
mov ecx, dword [esi]
push ecx
push edx
push 3
push eax
jmp 0x96e41
test eax, eax
je case.default.0x96cbe
mov eax, dword [esp + 0x78]
mov eax, dword [eax]
add eax, 0xfffffffb
cmp eax, 5
ja case.default.0x96cbe
jmp dword [eax*4 + 0x97830]
mov eax, 0x240
mov esi, dword [esp + 0x7c]
mov edx, dword [esp + 0x6c]
mov ebx, 0x2d0
mov edi, 4
mov dword [ebp + 0x78c], eax
mov dword [ebp + 0x788], ebx
mov dword [ebp + 0x794], edi
mov ecx, dword [esi]
push ecx
push edx
push 3
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ebx
push eax
jmp 0x96e41
mov eax, 0x1e0
jmp 0x96cca
mov esi, dword [esp + 0x7c]
mov edx, dword [esp + 0x6c]
mov eax, 0x2d0
mov ebx, 0x500
mov edi, 4
mov dword [ebp + 0x78c], eax
mov dword [ebp + 0x788], ebx
mov dword [ebp + 0x794], edi
mov ecx, dword [esi]
push ecx
push edx
push 3
push eax
push ebp
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ebx
mov dword [esp + 0x24], 1
call fcn.00096250
test eax, eax
jne 0x9781f
mov ecx, dword [esp + 0x6c]
mov ebx, 0x2d0
mov dword [ebp + 0x78c], 0x1e0
mov dword [ebp + 0x788], ebx
mov dword [ebp + 0x794], edi
mov eax, dword [esi]
push eax
push ecx
jmp 0x96e3a
mov esi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x6c]
mov eax, 0x438
mov ebx, 0x780
mov edi, 4
mov dword [ebp + 0x78c], eax
mov dword [ebp + 0x788], ebx
mov dword [ebp + 0x794], edi
mov edx, dword [esi]
push edx
push ecx
push 3
push eax
push ebp
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ebx
mov dword [esp + 0x24], 1
call fcn.00096250
test eax, eax
jne 0x9781f
mov eax, dword [esp + 0x6c]
mov ebx, 0x500
mov dword [ebp + 0x78c], 0x2d0
mov dword [ebp + 0x788], ebx
mov dword [ebp + 0x794], edi
mov edx, dword [esi]
push edx
push eax
push 3
push 0x2d0
push ebp
call fcn.00096250
test eax, eax
jne 0x9781f
mov edx, dword [esp + 0x6c]
mov ebx, 0x2d0
mov dword [ebp + 0x78c], 0x1e0
mov dword [ebp + 0x788], ebx
mov dword [ebp + 0x794], edi
mov ecx, dword [esi]
push ecx
push edx
push 3
push 0x1e0
push ebp
call fcn.00096250
test eax, eax
je 0x96e5e
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x58
ret 0x1c
mov esi, dword [esp + 0x7c]
cmp dword [esp + 0x18], 0
je case.default.0x96e80
mov eax, dword [esp + 0x1c]
add eax, 0xffffffff
cmp eax, 0x16
ja case.default.0x96e80
movzx eax, byte [eax + 0x9785c]
jmp dword [eax*4 + 0x97848]
pop edi
pop esi
mov dword [ebp + 0x78c], 0x240
mov dword [ebp + 0x788], 0x2d0
mov dword [ebp + 0x794], 4
pop ebp
mov eax, 1
pop ebx
add esp, 0x58
ret 0x1c
pop edi
pop esi
mov dword [ebp + 0x78c], 0x1e7
mov dword [ebp + 0x788], 0x2d0
mov dword [ebp + 0x794], 4
pop ebp
mov eax, 1
pop ebx
add esp, 0x58
ret 0x1c
pop edi
pop esi
mov dword [ebp + 0x78c], 0x2d0
mov dword [ebp + 0x788], 0x500
mov dword [ebp + 0x794], 4
pop ebp
mov eax, 1
pop ebx
add esp, 0x58
ret 0x1c
pop edi
pop esi
mov dword [ebp + 0x78c], 0x438
mov dword [ebp + 0x788], 0x780
mov dword [ebp + 0x794], 4
pop ebp
mov eax, 1
pop ebx
add esp, 0x58
ret 0x1c
pop edi
pop esi
mov dword [ebp + 0x78c], 0x40b
mov dword [ebp + 0x788], 0x780
mov dword [ebp + 0x794], 4
pop ebp
mov eax, 1
pop ebx
add esp, 0x58
ret 0x1c
cmp dword [esp + 0x28], 0
jne 0x97244
mov ecx, dword [esp + 0x78]
mov eax, dword [ecx]
cmp eax, 4
je 0x96f90
test eax, eax
jne 0x96f9b
mov edx, dword [0x4e73e0]
cmp dword [edx + 0x1424], eax
je 0x96f9b
cmp dword [esp + 0x20], 0
jne 0x97244
mov ecx, dword [esp + 0x70]
cmp ecx, 0x280
mov eax, dword [esp + 0x74]
jb 0x9724c
cmp eax, 0x1e0
jb 0x9724c
cmp ecx, 0x500
mov dword [ebp + 0x788], ecx
mov dword [ebp + 0x78c], eax
mov dword [ebp + 0x794], 4
jbe 0x97219
cmp eax, 0x2d0
jbe 0x97219
cmp ecx, 0x400
jb 0x97219
mov eax, dword [esi]
mov ecx, dword [esp + 0x6c]
mov edx, dword [ebp + 0x78c]
mov edi, dword [ebp + 0x794]
mov ebx, dword [ebp + 0x788]
push eax
push ecx
push 3
push edx
push ebp
call fcn.00096250
test eax, eax
jne 0x97219
cmp dword [esp + 0x10], 0
mov eax, dword [ebp + 0x788]
je 0x97102
mov edi, 0x5a0
cmp eax, edi
jb 0x97075
mov ecx, dword [ebp + 0x78c]
cmp ecx, 0x384
jbe 0x9705b
mov dword [ebp + 0x788], edi
mov dword [ebp + 0x78c], 0x384
jmp 0x97209
mov edx, 0x320
cmp ecx, edx
jbe 0x9707a
mov dword [ebp + 0x788], edi
mov dword [ebp + 0x78c], edx
jmp 0x97209
mov edx, 0x320
mov edi, 0x500
cmp eax, edi
jbe 0x9709e
cmp dword [ebp + 0x78c], edx
jb 0x9709c
mov dword [ebp + 0x788], edi
mov dword [ebp + 0x78c], edx
jmp 0x97209
cmp eax, edi
jb 0x970be
mov ecx, 0x2d0
cmp dword [ebp + 0x78c], ecx
jbe 0x970be
mov dword [ebp + 0x788], edi
mov dword [ebp + 0x78c], ecx
jmp 0x97209
cmp eax, 0x400
jbe 0x970de
mov dword [ebp + 0x788], 0x400
mov dword [ebp + 0x78c], 0x23f
jmp 0x97209
cmp eax, 0x356
jbe 0x97209
mov dword [ebp + 0x788], 0x356
mov dword [ebp + 0x78c], 0x1e0
jmp 0x97209
cmp eax, 0x800
jbe 0x97122
mov dword [ebp + 0x788], 0x800
mov dword [ebp + 0x78c], 0x600
jmp 0x971b1
cmp eax, 0x780
jbe 0x9713f
mov dword [ebp + 0x788], 0x780
mov dword [ebp + 0x78c], 0x5a0
jmp 0x971b1
cmp eax, 0x640
jbe 0x9715c
mov dword [ebp + 0x788], 0x640
mov dword [ebp + 0x78c], 0x4b0
jmp 0x971b1
cmp eax, 0x500
jbe 0x97179
mov dword [ebp + 0x788], 0x500
mov dword [ebp + 0x78c], 0x400
jmp 0x971b1
cmp eax, 0x400
jbe 0x97196
mov dword [ebp + 0x788], 0x400
mov dword [ebp + 0x78c], 0x300
jmp 0x971b1
cmp eax, 0x320
jbe 0x971b1
mov dword [ebp + 0x788], 0x320
mov dword [ebp + 0x78c], 0x258
mov eax, dword [0x4e73e0]
mov ecx, dword [eax + 0x2520]
mov edx, dword [ecx]
call dword [edx + 0x124]
cmp dword [eax + 0x4ba0], 4
ja 0x97209
mov eax, dword [0x4e73e0]
mov ecx, dword [eax + 0x2520]
mov edx, dword [ecx]
call dword [edx + 0x124]
cmp dword [eax + 0x4ba4], 0x1c2
jae 0x97209
mov eax, 0x500
cmp dword [ebp + 0x788], eax
jbe 0x97209
mov dword [ebp + 0x788], eax
mov dword [ebp + 0x78c], 0x400
cmp dword [ebp + 0x788], 0x400
jae 0x96ff3
mov eax, dword [esi]
mov ecx, dword [esp + 0x6c]
mov edx, dword [ebp + 0x78c]
mov edi, dword [ebp + 0x794]
mov ebx, dword [ebp + 0x788]
push eax
push ecx
push 3
push edx
push ebp
call fcn.00096250
test eax, eax
jne 0x9781f
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
test byte [esi + 2], 0xff
je 0x97298
mov eax, dword [esp + 0x80]
mov ebx, dword [esp + 0x84]
mov edx, dword [esp + 0x6c]
mov edi, 4
mov dword [ebp + 0x788], ebx
mov dword [ebp + 0x78c], eax
mov dword [ebp + 0x794], edi
mov ecx, dword [esi]
push ecx
push edx
push 3
push eax
push ebp
call fcn.00096250
test eax, eax
jne 0x9781f
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
cmp dword [esp + 0x10], 0
je 0x9746c
cmp ecx, 0x400
ja 0x972e6
cmp eax, 0x23f
ja 0x972e6
mov ecx, dword [esp + 0x6c]
mov ebx, 0x400
mov edi, 4
mov dword [ebp + 0x788], ebx
mov dword [ebp + 0x78c], 0x23f
mov dword [ebp + 0x794], edi
mov eax, dword [esi]
push eax
push ecx
push 3
push 0x23f
jmp 0x97399
cmp ecx, 0x500
ja 0x97357
cmp eax, 0x2d0
ja 0x97326
mov eax, dword [esp + 0x6c]
mov ebx, 0x500
mov edi, 4
mov dword [ebp + 0x788], ebx
mov dword [ebp + 0x78c], 0x2d0
mov dword [ebp + 0x794], edi
mov edx, dword [esi]
push edx
push eax
push 3
push 0x2d0
jmp 0x97399
cmp eax, 0x320
ja 0x97357
mov edx, dword [esp + 0x6c]
mov ebx, 0x500
mov edi, 4
mov dword [ebp + 0x788], ebx
mov dword [ebp + 0x78c], 0x320
mov dword [ebp + 0x794], edi
mov ecx, dword [esi]
push ecx
push edx
jmp 0x97392
cmp ecx, 0x5a0
ja 0x97409
cmp eax, 0x320
ja 0x973b6
mov ecx, dword [esp + 0x6c]
mov ebx, 0x5a0
mov edi, 4
mov dword [ebp + 0x788], ebx
mov dword [ebp + 0x78c], 0x320
mov dword [ebp + 0x794], edi
mov eax, dword [esi]
push eax
push ecx
push 3
push 0x320
push ebp
call fcn.00096250
test eax, eax
je 0x976d6
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x58
ret 0x1c
cmp eax, 0x384
ja 0x97409
mov eax, dword [esp + 0x6c]
mov ebx, 0x5a0
mov edi, 4
mov dword [ebp + 0x788], ebx
mov dword [ebp + 0x78c], 0x384
mov dword [ebp + 0x794], edi
mov edx, dword [esi]
push edx
push eax
push 3
push 0x384
push ebp
call fcn.00096250
test eax, eax
je 0x976d6
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x58
ret 0x1c
cmp ecx, 0x780
ja 0x976d6
cmp eax, 0x438
ja 0x976d6
mov edx, dword [esp + 0x6c]
mov ebx, 0x780
mov edi, 4
mov dword [ebp + 0x788], ebx
mov dword [ebp + 0x78c], 0x438
mov dword [ebp + 0x794], edi
mov ecx, dword [esi]
push ecx
push edx
push 3
push 0x438
push ebp
call fcn.00096250
test eax, eax
je 0x976d6
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x58
ret 0x1c
cmp ecx, 0x280
ja 0x974c7
cmp eax, 0x1e0
ja 0x974c7
mov ecx, dword [esp + 0x6c]
mov ebx, 0x280
mov edi, 4
mov dword [ebp + 0x788], ebx
mov dword [ebp + 0x78c], 0x1e0
mov dword [ebp + 0x794], edi
mov eax, dword [esi]
push eax
push ecx
push 3
push 0x1e0
push ebp
call fcn.00096250
test eax, eax
je 0x976d6
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x58
ret 0x1c
cmp ecx, 0x320
ja 0x97522
cmp eax, 0x258
ja 0x97522
mov eax, dword [esp + 0x6c]
mov ebx, 0x320
mov edi, 4
mov dword [ebp + 0x788], ebx
mov dword [ebp + 0x78c], 0x258
mov dword [ebp + 0x794], edi
mov edx, dword [esi]
push edx
push eax
push 3
push 0x258
push ebp
call fcn.00096250
test eax, eax
je 0x976d6
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x58
ret 0x1c
cmp ecx, 0x400
ja 0x9757d
cmp eax, 0x300
ja 0x9757d
mov edx, dword [esp + 0x6c]
mov ebx, 0x400
mov edi, 4
mov dword [ebp + 0x788], ebx
mov dword [ebp + 0x78c], 0x300
mov dword [ebp + 0x794], edi
mov ecx, dword [esi]
push ecx
push edx
push 3
push 0x300
push ebp
call fcn.00096250
test eax, eax
je 0x976d6
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x58
ret 0x1c
cmp ecx, 0x500
ja 0x975d8
cmp eax, 0x3c0
ja 0x975d8
mov ecx, dword [esp + 0x6c]
mov ebx, 0x500
mov edi, 4
mov dword [ebp + 0x788], ebx
mov dword [ebp + 0x78c], 0x3c0
mov dword [ebp + 0x794], edi
mov eax, dword [esi]
push eax
push ecx
push 3
push 0x3c0
push ebp
call fcn.00096250
test eax, eax
je 0x976d6
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x58
ret 0x1c
cmp ecx, 0x640
ja 0x97633
cmp eax, 0x4b0
ja 0x97633
mov eax, dword [esp + 0x6c]
mov ebx, 0x640
mov edi, 4
mov dword [ebp + 0x788], ebx
mov dword [ebp + 0x78c], 0x4b0
mov dword [ebp + 0x794], edi
mov edx, dword [esi]
push edx
push eax
push 3
push 0x4b0
push ebp
call fcn.00096250
test eax, eax
je 0x976d6
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x58
ret 0x1c
cmp ecx, 0x780
ja 0x9768a
cmp eax, 0x5a0
ja 0x9768a
mov edx, dword [esp + 0x6c]
mov ebx, 0x780
mov edi, 4
mov dword [ebp + 0x788], ebx
mov dword [ebp + 0x78c], 0x5a0
mov dword [ebp + 0x794], edi
mov ecx, dword [esi]
push ecx
push edx
push 3
push 0x5a0
push ebp
call fcn.00096250
test eax, eax
je 0x976d6
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x58
ret 0x1c
cmp ecx, 0x800
ja 0x976d6
cmp eax, 0x600
ja 0x976d6
mov ecx, dword [esp + 0x6c]
mov ebx, 0x800
mov edi, 4
mov dword [ebp + 0x788], ebx
mov dword [ebp + 0x78c], 0x600
mov dword [ebp + 0x794], edi
mov eax, dword [esi]
push eax
push ecx
push 3
push 0x600
push ebp
call fcn.00096250
test eax, eax
jne 0x9781f
mov eax, dword [esp + 0x6c]
mov ebx, 0x320
mov edi, 4
mov dword [ebp + 0x788], ebx
mov dword [ebp + 0x78c], 0x258
mov dword [ebp + 0x794], edi
mov edx, dword [esi]
push edx
push eax
push 3
push 0x258
push ebp
call fcn.00096250
test eax, eax
jne 0x9781f
mov edx, dword [esp + 0x6c]
mov ebx, 0x280
mov dword [ebp + 0x788], ebx
mov dword [ebp + 0x78c], 0x1e0
mov dword [ebp + 0x794], edi
mov ecx, dword [esi]
push ecx
push edx
push 3
push 0x1e0
push ebp
call fcn.00096250
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x58
ret 0x1c
mov eax, dword [edi + 0x244]
and eax, 3
xor ecx, ecx
cmp eax, 3
sete cl
xor edx, edx
cmp eax, 1
sete dl
or ecx, edx
je 0x977a9
mov esi, dword [ebp + 0x7e0]
mov eax, esi
shl eax, 4
lea ecx, [eax + edi]
mov eax, dword [ecx + 0xb34]
sub eax, dword [ecx + 0xb2c]
add esi, 0xb3
cdq
xor eax, edx
sub eax, edx
shl esi, 4
mov dword [ebp + 0x788], eax
mov eax, dword [esi + edi]
sub eax, dword [ecx + 0xb28]
jmp 0x977df
mov eax, dword [ebp + 0x7e0]
mov ecx, eax
add eax, 0xb3
shl eax, 4
mov eax, dword [eax + edi]
shl ecx, 4
sub eax, dword [ecx + edi + 0xb28]
add ecx, edi
cdq
xor eax, edx
sub eax, edx
mov dword [ebp + 0x788], eax
mov eax, dword [ecx + 0xb34]
sub eax, dword [ecx + 0xb2c]
cdq
xor eax, edx
sub eax, edx
mov dword [ebp + 0x78c], eax
test byte [edi + 0x19b], 8
mov eax, 3
jne 0x977fe
mov eax, dword [edi + 0x238]
cmp eax, 1
mov dword [ebp + 0x794], eax
mov edx, dword [edi + 0x174]
mov dword [ebp + 0x790], edx
jne 0x9781f
mov dword [ebp + 0x794], 2
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x58
ret 0x1c