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

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
mov esi, dword [0x4263ec]
push edi
xor edi, edi
mov ebx, ecx
cmp esi, edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
je 0x4178d0
cmp esi, 1
je 0x4178d0
cmp esi, 0xa
je 0x4178d0
cmp esi, 0xb
je 0x4178d0
xor al, al
jmp 0x4178d2
mov al, 1
xor edx, edx
test al, al
setne dl
inc edx
cmp esi, 2
jne 0x4178e5
cmp byte [ebx + 3], 1
je 0x41791d
mov ecx, dword [ebx + 8]
cmp ecx, edi
jne 0x417912
cmp edx, 1
jne 0x4178fe
mov ebp, dword [esp + 0x70]
xor eax, eax
cmp ebp, edi
setne al
jmp 0x41790a
mov ebp, dword [esp + 0x70]
xor eax, eax
cmp ebp, 1
sete al
test al, al
jne 0x41791d
cmp ecx, edi
je 0x417924
cmp dword [ecx + 0xc], edi
jne 0x417924
cmp byte [ecx + 3], 3
jne 0x417924
mov byte [esp + 0x10], 1
jmp 0x417929
mov byte [esp + 0x10], 0
mov ecx, dword [ebx + 4]
mov dword [esp + 0x34], edi
cmp ecx, edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x30], edx
je 0x417b35
mov ebp, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
push edi
push ebp
lea edx, [esp + 0x58]
push eax
push edx
call fcn.00412530
mov edi, eax
cmp esi, 0xc
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov edx, dword [edi + 8]
mov dword [esp + 0x48], edx
mov edi, dword [edi + 0xc]
mov dword [esp + 0x4c], edi
jne 0x417977
mov dword [esp + 0x30], ecx
cmp eax, edx
mov ebx, eax
je 0x417c58
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
sub esi, edx
sar esi, 3
cmp eax, 0xc
je 0x4179a3
test esi, esi
je 0x4179a3
mov dword [esp + 0x30], 0
mov edi, dword [ebp]
lea eax, [esp + 0x68]
push eax
mov ecx, ebx
call fcn.0040b720
mov ecx, eax
call fcn.00408540
test eax, eax
je 0x4179ec
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, ebx
call fcn.0040b720
mov ecx, eax
call fcn.0040b990
lea ecx, [esp + 0x3c]
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0041aa50
jmp 0x417a5b
lea edx, [esp + 0x20]
mov ecx, ebx
push edx
call fcn.0040b760
mov ecx, eax
call fcn.00408070
test eax, eax
je 0x417a5b
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
call fcn.0040b770
mov ecx, eax
call fcn.00408540
test eax, eax
je 0x417a5b
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x30]
push edi
push eax
mov ecx, ebx
call fcn.0040b770
mov ecx, eax
call fcn.0040b990
lea ecx, [esp + 0x38]
push eax
push ecx
mov ecx, ebx
call fcn.0040b760
mov ecx, eax
call fcn.0040b990
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x40]
push eax
push edx
call fcn.0041af70
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 8]
test edi, edi
je 0x417b21
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
sub ecx, eax
sar ecx, 3
cmp ecx, esi
je 0x417b21
mov ecx, dword [esp + 0x30]
mov eax, 1
cmp ecx, eax
jne 0x417a99
mov eax, dword [esp + 0x70]
test eax, eax
setne byte [esp + 0x6c]
jmp 0x417aa2
cmp dword [esp + 0x70], eax
sete byte [esp + 0x6c]
test edi, edi
je 0x417b21
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x417abc
mov al, byte [esp + 0x6c]
test al, al
je 0x417abc
mov ecx, 1
jmp 0x417abe
xor ecx, ecx
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
sub edx, eax
sar edx, 3
cmp edx, esi
je 0x417b1a
mov al, byte [edi + 3]
cmp al, 2
je 0x417b07
cmp al, 3
je 0x417b07
mov eax, dword [edi + 8]
push ecx
push ebp
push eax
mov dl, byte [eax + 1]
push esi
cmp dl, 2
jne 0x417af8
lea eax, [esp + 0x40]
push eax
call fcn.00413840
add esp, 0x14
jmp 0x417b1a
lea ecx, [esp + 0x40]
push ecx
call fcn.004137a0
add esp, 0x14
jmp 0x417b1a
mov edx, dword [edi + 8]
push ebp
push edx
lea eax, [esp + 0x38]
push esi
push eax
call fcn.004138f0
add esp, 0x10
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x417aa6
mov eax, dword [esp + 0x48]
add ebx, 8
cmp ebx, eax
jne 0x417981
jmp 0x417c58
mov ebp, dword [esp + 0x6c]
mov esi, dword [esp + 0x68]
lea ecx, [esp + 0x6c]
mov edi, dword [ebp]
push ecx
mov ecx, esi
call fcn.0040b720
mov ecx, eax
call fcn.00408540
test eax, eax
je 0x417b84
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x7c]
push edi
push ecx
mov ecx, esi
call fcn.0040b720
mov ecx, eax
call fcn.0040b990
lea edx, [esp + 0x3c]
push eax
push edx
mov ecx, ebx
call fcn.0041aa50
jmp 0x417bf1
lea eax, [esp + 0x6c]
mov ecx, esi
push eax
call fcn.0040b760
mov ecx, eax
call fcn.00408070
test eax, eax
je 0x417bf1
lea ecx, [esp + 0x6c]
push ecx
mov ecx, esi
call fcn.0040b770
mov ecx, eax
call fcn.00408540
test eax, eax
je 0x417bf1
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x7c]
push edi
push ecx
mov ecx, esi
call fcn.0040b770
mov ecx, eax
call fcn.0040b990
lea edx, [esp + 0x78]
push eax
push edx
mov ecx, esi
call fcn.0040b760
mov ecx, eax
call fcn.0040b990
push eax
lea eax, [esp + 0x44]
push eax
mov ecx, ebx
call fcn.0041af70
mov esi, dword [ebx + 8]
test esi, esi
je 0x417c58
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
sub ecx, edx
test ecx, 0xfffffff8
je 0x417c58
mov ecx, dword [esp + 0x30]
mov eax, 1
cmp ecx, eax
jne 0x417c22
mov eax, dword [esp + 0x70]
test eax, eax
setne bl
jmp 0x417c29
cmp dword [esp + 0x70], eax
sete bl
test esi, esi
je 0x417c58
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x417c3f
test bl, bl
je 0x417c3f
mov eax, 1
jmp 0x417c41
xor eax, eax
push eax
push ebp
lea edx, [esp + 0x38]
push 0
push edx
mov ecx, esi
call fcn.00417360
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x417c2d
mov eax, dword [esp + 0x18]
cmp eax, 3
je 0x417c80
cmp eax, 2
je 0x417c80
cmp eax, 0xc
je 0x417c80
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x417c80
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x30]
push eax
call fcn.00413520
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x30]
mov ecx, eax
pop edi
pop esi
pop ebp
mov dword [ecx], edx
mov edx, dword [esp + 0x28]
pop ebx
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x28]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + 0xc], edx
add esp, 0x50
ret 0x14