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

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
mov esi, dword [0x4263f0]
push edi
xor edi, edi
mov ebx, ecx
cmp esi, edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
je 0x417ce0
cmp esi, 1
je 0x417ce0
cmp esi, 0xa
je 0x417ce0
cmp esi, 0xb
je 0x417ce0
xor al, al
jmp 0x417ce2
mov al, 1
xor edx, edx
test al, al
setne dl
inc edx
cmp esi, 2
jne 0x417cf5
cmp byte [ebx + 3], 1
je 0x417d2d
mov ecx, dword [ebx + 8]
cmp ecx, edi
jne 0x417d22
cmp edx, 1
jne 0x417d0e
mov ebp, dword [esp + 0x70]
xor eax, eax
cmp ebp, edi
setne al
jmp 0x417d1a
mov ebp, dword [esp + 0x70]
xor eax, eax
cmp ebp, 1
sete al
test al, al
jne 0x417d2d
cmp ecx, edi
je 0x417d34
cmp dword [ecx + 0xc], edi
jne 0x417d34
cmp byte [ecx + 3], 3
jne 0x417d34
mov byte [esp + 0x10], 1
jmp 0x417d39
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 0x417f45
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 0x417d87
mov dword [esp + 0x30], ecx
cmp eax, edx
mov ebx, eax
je 0x418068
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 0x417db3
test esi, esi
je 0x417db3
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 0x417dfc
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.0041acd0
jmp 0x417e6b
lea edx, [esp + 0x20]
mov ecx, ebx
push edx
call fcn.0040b760
mov ecx, eax
call fcn.00408070
test eax, eax
je 0x417e6b
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
call fcn.0040b770
mov ecx, eax
call fcn.00408540
test eax, eax
je 0x417e6b
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.0041ad50
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 8]
test edi, edi
je 0x417f31
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
sub ecx, eax
sar ecx, 3
cmp ecx, esi
je 0x417f31
mov ecx, dword [esp + 0x30]
mov eax, 1
cmp ecx, eax
jne 0x417ea9
mov eax, dword [esp + 0x70]
test eax, eax
setne byte [esp + 0x6c]
jmp 0x417eb2
cmp dword [esp + 0x70], eax
sete byte [esp + 0x6c]
test edi, edi
je 0x417f31
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x417ecc
mov al, byte [esp + 0x6c]
test al, al
je 0x417ecc
mov ecx, 1
jmp 0x417ece
xor ecx, ecx
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
sub edx, eax
sar edx, 3
cmp edx, esi
je 0x417f2a
mov al, byte [edi + 3]
cmp al, 2
je 0x417f17
cmp al, 3
je 0x417f17
mov eax, dword [edi + 8]
push ecx
push ebp
push eax
mov dl, byte [eax + 1]
push esi
cmp dl, 2
jne 0x417f08
lea eax, [esp + 0x40]
push eax
call fcn.00413840
add esp, 0x14
jmp 0x417f2a
lea ecx, [esp + 0x40]
push ecx
call fcn.004137a0
add esp, 0x14
jmp 0x417f2a
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 0x417eb6
mov eax, dword [esp + 0x48]
add ebx, 8
cmp ebx, eax
jne 0x417d91
jmp 0x418068
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 0x417f94
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.0041acd0
jmp 0x418001
lea eax, [esp + 0x6c]
mov ecx, esi
push eax
call fcn.0040b760
mov ecx, eax
call fcn.00408070
test eax, eax
je 0x418001
lea ecx, [esp + 0x6c]
push ecx
mov ecx, esi
call fcn.0040b770
mov ecx, eax
call fcn.00408540
test eax, eax
je 0x418001
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.0041ad50
mov esi, dword [ebx + 8]
test esi, esi
je 0x418068
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
sub ecx, edx
test ecx, 0xfffffff8
je 0x418068
mov ecx, dword [esp + 0x30]
mov eax, 1
cmp ecx, eax
jne 0x418032
mov eax, dword [esp + 0x70]
test eax, eax
setne bl
jmp 0x418039
cmp dword [esp + 0x70], eax
sete bl
test esi, esi
je 0x418068
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x41804f
test bl, bl
je 0x41804f
mov eax, 1
jmp 0x418051
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 0x41803d
mov eax, dword [esp + 0x18]
cmp eax, 3
je 0x418090
cmp eax, 2
je 0x418090
cmp eax, 0xc
je 0x418090
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x418090
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