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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x40
mov edi, ecx
movsx eax, byte [0x808730]
test eax, eax
jne 0x417a83
mov eax, dword [esp + 0x54]
mov ebx, dword [eax + 0x18]
sub ebx, dword [eax + 8]
add ebx, 1
mov edx, dword [eax + 0x20]
sub edx, dword [eax + 0x10]
add edx, 1
mov esi, dword [0x808584]
mov ebp, dword [0x808588]
test ebx, ebx
jle 0x417a83
test edx, edx
jle 0x417a83
test esi, esi
jle 0x417a83
test ebp, ebp
jle 0x417a83
mov eax, dword [edi]
test eax, eax
jne 0x417a8d
movsx ecx, byte [0x8081a8]
test ecx, ecx
je 0x417a8d
movsx ecx, byte [0x8081ac]
test ecx, ecx
je 0x417a8d
cmp byte [0x808484], 1
je 0x417d11
cmp byte [0x808488], 1
je 0x417d11
xor eax, eax
mov dword [0x8083e8], eax
mov dword [0x8083ec], eax
mov edx, dword [esp + 0x54]
mov eax, dword [edx + 0x90]
call fcn.004196c0
test eax, eax
je 0x417a83
movsx eax, byte [0x8081a8]
test eax, eax
je 0x417a70
push 0x8128dc
push 0x80e270
call fcn.0040c598
add esp, 8
xor eax, eax
mov byte [0x8081e0], al
mov byte [0x5b5730], 1
mov byte [0x8081a8], al
add esp, 0x40
pop ebx
pop ebp
pop esi
pop edi
ret 4
mov dword [esp + 0x3c], ebp
mov ecx, dword [esp + 0x54]
mov ebp, dword [ecx + 0x78]
mov dword [edi + 0x2c4], ebp
mov ebp, dword [ecx + 0x7c]
neg ebp
mov dword [edi + 0x2c8], ebp
test eax, eax
mov ebp, dword [esp + 0x3c]
jne 0x417ace
movsx eax, byte [0x808484]
cmp eax, 1
je 0x417d42
cmp byte [0x808488], 1
je 0x417d42
xor eax, eax
mov dword [0x8083e8], eax
mov dword [0x8083ec], eax
cmp dword [edi], 0
jne 0x417cb6
cmp ebx, esi
jne 0x417aef
cmp edx, ebp
je 0x418074
mov eax, dword [esp + 0x54]
mov edx, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
mov dword [edi + 0x2c4], esi
mov ebx, ebp
neg ebx
mov dword [edi + 0x2c8], ebx
cmp byte [0x5b5730], 1
jne 0x417c13
movzx ebx, byte [0x5d24f4]
test ebx, ebx
je 0x417ba9
movzx ebx, byte [0x5b504c]
test ebx, ebx
je 0x417ba9
mov dword [esp + 0xc], 0
lea ebx, [edx + edx]
add ebx, ebx
sub ebx, edx
lea ebx, [edx + ebx*8]
add ebx, ebx
lea ebx, [ebx + ebx - 0x64]
mov dword [esp + 0x10], ebx
lea ebx, [eax + eax]
add ebx, ebx
sub ebx, eax
lea ebx, [eax + ebx*8]
add ebx, ebx
lea ebx, [ebx + ebx - 0x64]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
lea eax, [esi + esi]
add eax, eax
sub eax, esi
lea esi, [esi + eax*8]
add esi, esi
add esi, esi
mov dword [esp + 0x20], esi
lea eax, [ebp + ebp]
add eax, eax
sub eax, ebp
lea ebp, [ebp + eax*8]
add ebp, ebp
add ebp, ebp
mov dword [esp + 0x24], ebp
mov eax, dword [0x8083bc]
mov edx, dword [esp + 0x54]
mov edx, dword [edx + 0x90]
xor ecx, ecx
call fcn.0041909c
jmp 0x417c4f
mov dword [esp + 0x38], edi
lea edi, [edx + edx]
add edi, edi
sub edi, edx
lea ecx, [edx + edi*8]
add ecx, ecx
lea ebx, [ecx + ecx - 0x64]
lea ecx, [eax + eax]
add ecx, ecx
sub ecx, eax
lea ecx, [eax + ecx*8]
add ecx, ecx
lea ecx, [ecx + ecx - 0x64]
lea edi, [esi + esi]
add edi, edi
sub edi, esi
lea esi, [esi + edi*8]
add esi, esi
add esi, esi
lea edi, [ebp + ebp]
add edi, edi
sub edi, ebp
lea ebp, [ebp + edi*8]
add ebp, ebp
add ebp, ebp
push ebp
push esi
push eax
push edx
push ecx
push ebx
xor eax, eax
push eax
push eax
mov edx, dword [esp + 0x74]
push dword [edx + 0x90]
push dword [0x8083bc]
mov edi, dword [esp + 0x60]
call fcn.004184b4
add esp, 0x28
jmp 0x417c4f
mov dword [esp + 0xc], 0
lea ebx, [edx - 1]
mov dword [esp + 0x10], ebx
lea ebx, [eax - 1]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebp
mov eax, dword [0x8083bc]
mov ebp, dword [esp + 0x54]
mov edx, dword [ebp + 0x90]
xor ecx, ecx
call fcn.00418108
push dword [edi + 0x2a4]
call dword [0x58d370]
mov ebx, eax
push 3
push ebx
call dword [0x58d05c]
mov eax, dword [0x808584]
mov esi, dword [0x808588]
lea edx, [edi + 0x2c0]
xor ebp, ebp
push 0xcc0020
push ebp
push edx
push dword [0x8083bc]
push esi
push eax
push ebp
push ebp
push esi
push eax
push dword [0x8083ec]
push dword [0x8083e8]
push ebx
call dword [0x58d060]
push ebx
push dword [edi + 0x2a4]
call dword [0x58d374]
add esp, 0x40
pop ebx
pop ebp
pop esi
pop edi
ret 4
mov eax, dword [esp + 0x54]
mov esi, dword [eax + 0x78]
mov ebx, dword [eax + 0x7c]
push dword [edi + 0x2a4]
call dword [0x58d370]
mov ebp, eax
lea edx, [edi + 0x2c0]
xor eax, eax
push 0xcc0020
push eax
push edx
mov edx, dword [esp + 0x60]
push dword [edx + 0x90]
push ebx
push esi
push eax
push eax
push ebx
push esi
push dword [edx + 0x70]
push dword [edx + 0x68]
push ebp
call dword [0x58d060]
push ebp
push dword [edi + 0x2a4]
call dword [0x58d374]
add esp, 0x40
pop ebx
pop ebp
pop esi
pop edi
ret 4
mov eax, dword [0x808574]
sub eax, esi
mov esi, eax
shr esi, 0x1f
add eax, esi
sar eax, 1
mov dword [0x8083e8], eax
mov edx, dword [0x808578]
sub edx, ebp
mov ebp, edx
shr ebp, 0x1f
add edx, ebp
sar edx, 1
mov dword [0x8083ec], edx
jmp 0x417a40
mov ebx, dword [esp + 0x54]
mov edx, dword [ebx + 0x78]
mov dword [esp + 0x34], edx
mov edx, dword [ebx + 0x7c]
mov dword [esp + 0x30], edx
mov ebx, dword [0x808574]
sub ebx, esi
mov edx, ebx
shr edx, 0x1f
add ebx, edx
sar ebx, 1
mov dword [0x8083e8], ebx
mov ebx, dword [0x808578]
sub ebx, ebp
mov edx, ebx
shr edx, 0x1f
add ebx, edx
sar ebx, 1
mov dword [0x8083ec], ebx
movsx edx, byte [0x5b572c]
test edx, edx
je 0x417d9a
cmp byte [0x5b5730], 1
je 0x417eef
test eax, eax
jne 0x417dab
cmp byte [0x808488], 1
je 0x417eef
test edx, edx
je 0x417e7d
movsx eax, byte [0x5b5730]
test eax, eax
jne 0x417e7d
mov dword [edi + 0x2c4], esi
mov ebx, ebp
neg ebx
mov dword [edi + 0x2c8], ebx
mov dword [esp + 0xc], 0
mov edx, dword [esp + 0x34]
lea eax, [edx - 1]
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x30]
lea eax, [ebx - 1]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebp
mov eax, dword [0x8083bc]
mov ebp, dword [esp + 0x54]
mov edx, dword [ebp + 0x90]
xor ecx, ecx
call fcn.00418108
push dword [edi + 0x2a4]
call dword [0x58d370]
mov ebx, eax
push 3
push ebx
call dword [0x58d05c]
mov eax, dword [0x808584]
mov esi, dword [0x808588]
lea edx, [edi + 0x2c0]
xor ebp, ebp
push 0xcc0020
push ebp
push edx
push dword [0x8083bc]
push esi
push eax
push ebp
push ebp
push esi
push eax
push dword [0x8083ec]
push dword [0x8083e8]
push ebx
call dword [0x58d060]
push ebx
push dword [edi + 0x2a4]
call dword [0x58d374]
add esp, 0x40
pop ebx
pop ebp
pop esi
pop edi
ret 4
push dword [edi + 0x2a4]
call dword [0x58d370]
mov ebx, eax
push 3
push ebx
call dword [0x58d05c]
lea edx, [edi + 0x2c0]
xor eax, eax
push 0xcc0020
push eax
push edx
mov ebp, dword [esp + 0x60]
push dword [ebp + 0x90]
mov esi, dword [esp + 0x40]
push esi
mov edx, dword [esp + 0x48]
push edx
push eax
push eax
push dword [0x808588]
push dword [0x808584]
push dword [0x8083ec]
push dword [0x8083e8]
push ebx
call dword [0x58d060]
push ebx
push dword [edi + 0x2a4]
call dword [0x58d374]
add esp, 0x40
pop ebx
pop ebp
pop esi
pop edi
ret 4
mov dword [edi + 0x2c4], esi
mov eax, ebp
neg eax
mov dword [edi + 0x2c8], eax
movzx edx, byte [0x5d24f4]
test edx, edx
je 0x417f9b
movzx eax, byte [0x5b504c]
test eax, eax
je 0x417f9b
lea eax, [esi + esi]
add eax, eax
sub eax, esi
lea edx, [esi + eax*8]
add edx, edx
add edx, edx
lea eax, [ebp + ebp]
add eax, eax
sub eax, ebp
lea eax, [ebp + eax*8]
add eax, eax
add eax, eax
mov ebx, dword [esp + 0x34]
lea ebp, [ebx + ebx]
add ebp, ebp
sub ebp, ebx
lea ebp, [ebx + ebp*8]
add ebp, ebp
lea ebp, [ebp + ebp - 0x64]
mov esi, dword [esp + 0x30]
lea ecx, [esi + esi]
add ecx, ecx
sub ecx, esi
lea ecx, [esi + ecx*8]
add ecx, ecx
lea ecx, [ecx + ecx - 0x64]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov eax, dword [0x8083bc]
mov edx, dword [esp + 0x54]
mov edx, dword [edx + 0x90]
xor ecx, ecx
call fcn.0041909c
jmp 0x41800d
mov dword [esp + 0x38], edi
lea ebx, [esi + esi]
add ebx, ebx
sub ebx, esi
lea ecx, [esi + ebx*8]
add ecx, ecx
add ecx, ecx
lea edi, [ebp + ebp]
add edi, edi
sub edi, ebp
lea edx, [ebp + edi*8]
add edx, edx
add edx, edx
mov eax, dword [esp + 0x34]
lea ebx, [eax + eax]
add ebx, ebx
sub ebx, eax
lea ebx, [eax + ebx*8]
add ebx, ebx
lea esi, [ebx + ebx - 0x64]
mov ebp, dword [esp + 0x30]
lea ebx, [ebp + ebp]
add ebx, ebx
sub ebx, ebp
lea ebx, [ebp + ebx*8]
add ebx, ebx
lea ebx, [ebx + ebx - 0x64]
xor edi, edi
push edx
push ecx
push ebp
push eax
push ebx
push esi
push edi
push edi
mov eax, dword [esp + 0x74]
push dword [eax + 0x90]
push dword [0x8083bc]
mov edi, dword [esp + 0x60]
call fcn.004184b4
add esp, 0x28
push dword [edi + 0x2a4]
call dword [0x58d370]
mov ebx, eax
push 3
push ebx
call dword [0x58d05c]
mov eax, dword [0x808584]
mov esi, dword [0x808588]
lea edx, [edi + 0x2c0]
xor ebp, ebp
push 0xcc0020
push ebp
push edx
push dword [0x8083bc]
push esi
push eax
push ebp
push ebp
push esi
push eax
push dword [0x8083ec]
push dword [0x8083e8]
push ebx
call dword [0x58d060]
push ebx
push dword [edi + 0x2a4]
call dword [0x58d374]
add esp, 0x40
pop ebx
pop ebp
pop esi
pop edi
ret 4
push dword [edi + 0x2a4]
mov dword [esp + 0x38], edx
call dword [0x58d370]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], edi
lea ecx, [edi + 0x2c0]
mov eax, dword [esp + 0x54]
mov edi, dword [0x8083e8]
add edi, dword [eax + 0x68]
mov dword [esp + 0x28], edi
mov edi, dword [0x8083ec]
add edi, dword [eax + 0x70]
mov dword [esp + 0x2c], edi
xor edi, edi
push 0xcc0020
push edi
push ecx
push dword [eax + 0x90]
push edx
push ebx
push edi
push edi
push ebp
push esi
mov edx, dword [esp + 0x54]
push edx
mov ebx, dword [esp + 0x54]
push ebx
mov ebp, dword [esp + 0x60]
push ebp
mov edi, dword [esp + 0x6c]
call dword [0x58d060]
mov eax, ebp
push eax
push dword [edi + 0x2a4]
call dword [0x58d374]
add esp, 0x40
pop ebx
pop ebp
pop esi
pop edi
ret 4