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

Disassembly:
sub esp, 0x90
push ebp
mov ebp, ecx
push esi
mov edx, dword [ebp + 0x20]
test edx, edx
je 0x417e48
mov ecx, dword [ebp + 0x28]
mov eax, dword [ecx + 0xd24]
test eax, eax
je 0x417e40
cmp eax, edx
jne 0x417e40
mov eax, dword [eax + 0x10]
mov esi, dword [edx + 0x10]
cmp eax, esi
jne 0x417e40
mov eax, dword [ebp + 0x114]
test ah, 0x10
jne 0x417e40
mov eax, dword [ecx + 0xd44]
test eax, eax
je 0x417e40
mov edx, dword [ecx]
call dword [edx]
test eax, eax
je 0x417e40
mov eax, 1
jmp 0x417e42
xor eax, eax
mov dword [ebp + 0x1cc], eax
mov eax, dword [esp + 0x9c]
lea esi, [ebp + 0x1d4]
push eax
mov ecx, esi
mov dword [esp + 0x44], esi
call fcn.0040d280
mov ecx, ebp
call fcn.00415ff0
mov ecx, dword [ebp + 0x114]
shr ecx, 8
test cl, 1
jne 0x417ebc
lea edx, [ebp + 0xe4]
push edx
call fcn.0041e770
add esp, 4
test eax, eax
jne 0x417e9b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
pop esi
pop ebp
add esp, 0x90
ret 8
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x417ebc
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
push ecx
mov ecx, dword [eax + 8]
push edx
mov edx, dword [eax]
push ecx
push edx
mov ecx, esi
call fcn.00480780
mov eax, dword [ebp + 0x114]
test eax, 0x80800
je 0x417f61
lea ecx, [ebp + 0x12c]
shr eax, 8
mov edx, dword [ecx]
mov dword [esp + 0x44], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x48], edx
mov edx, dword [ecx + 8]
test al, 1
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ecx
jne 0x417f0e
lea edx, [esp + 0x44]
lea eax, [esp + 0x44]
push edx
lea ecx, [ebp + 0xe4]
push eax
push ecx
call fcn.0041e040
add esp, 0xc
mov eax, dword [ebp + 0x114]
xor ecx, ecx
mov edx, eax
and edx, 0x80000
cmp edx, 0x80000
sete cl
and eax, 0x800
xor edx, edx
cmp eax, 0x800
mov eax, dword [ebp + 0xdc]
sete dl
push ecx
mov ecx, dword [ebp + 0xd8]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x58]
push eax
push ecx
push edx
mov ecx, esi
call fcn.0040d9d0
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x417fa3
mov eax, dword [ebp + 0x114]
shr eax, 8
test al, 1
je 0x417f80
mov ecx, ebp
call fcn.004171a0
test eax, eax
je 0x417fa3
mov ecx, dword [ebp + 0x128]
mov edx, dword [ebp + 0x120]
mov eax, dword [ebp + 0x124]
push ecx
mov ecx, dword [ebp + 0x11c]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00480780
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
push ebx
push edi
or edi, 0xffffffff
cmp ecx, eax
mov dword [esp + 0x68], edi
mov dword [esp + 0x70], edi
jne 0x417fcc
lea edx, [esp + 0x70]
lea ecx, [esp + 0x68]
push edx
push ecx
push eax
mov ecx, ebp
call fcn.00415ec0
mov eax, dword [ebp + 0x140]
mov edx, dword [ebp + 0x124]
test eax, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x64], 0
mov dword [esp + 0x6c], edi
mov dword [esp + 0x60], edi
je 0x418005
mov ecx, ebp
call fcn.0040f480
cmp dword [ebp + 0x140], eax
jle 0x418005
mov dword [ebp + 0x140], eax
mov eax, dword [ebp + 0x140]
push 0
push eax
mov ecx, ebp
call fcn.00415f70
mov ecx, dword [ebp]
mov ebx, eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x24], ebx
cmp ecx, eax
mov dword [esp + 0x3c], ecx
jl 0x41802d
mov dword [esp + 0x3c], eax
cmp ecx, eax
mov dword [esp + 0x34], ecx
jg 0x418039
mov dword [esp + 0x34], eax
mov edi, dword [ebp + 0x140]
mov eax, dword [ebp + 0x154]
cmp edi, eax
mov dword [esp + 0x18], edi
jge 0x418742
jmp 0x418057
mov edi, dword [esp + 0x18]
mov ecx, dword [ebp + 0x150]
lea edx, [esp + 0x8c]
push edx
push edi
mov esi, dword [ecx + edi*4]
mov ecx, ebp
mov dword [esp + 0x28], esi
call fcn.00417c80
mov ecx, dword [esi + 0x1c]
test ecx, ecx
mov dword [esp + 0x30], ecx
je 0x41809b
mov edx, dword [esi + 4]
lea eax, [ecx + ecx*2]
mov ax, word [edx + eax*2 - 6]
cmp ax, 0xa
je 0x418096
cmp ax, 0xd
jne 0x41809b
dec ecx
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x94]
mov esi, dword [esp + 0x10]
add eax, edx
mov edx, dword [ebp + 0x128]
add eax, esi
cmp eax, edx
mov dword [esp + 0x74], eax
jle 0x4180cb
cmp edi, dword [ebp + 0x140]
jg 0x4186cf
xor eax, eax
mov dword [esp + 0x40], 0xffffffff
cmp ecx, eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x14], eax
jle 0x4185b7
jmp 0x4180fa
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
xor edx, edx
mov dword [esp + 0x38], eax
cmp byte [ebp + 0x14d], dl
mov dword [esp + 0x2c], edx
je 0x418134
mov esi, dword [ebp + 0x1cc]
test esi, esi
je 0x418134
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x18]
cmp esi, edi
jne 0x418134
mov esi, dword [esp + 0x70]
lea edi, [ebx + esi - 1]
add esi, ebx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], esi
cmp eax, ecx
mov dword [esp + 0x28], 0xffffffff
jge 0x4185b7
mov ecx, dword [esp + 0x20]
lea esi, [eax + eax*2]
lea edi, [eax + ebx]
mov ebx, dword [esp + 0x40]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x1c], edi
shl esi, 1
mov dword [esp + 0x44], ecx
add ecx, esi
jmp 0x418167
mov edx, dword [esp + 0x2c]
cmp word [ecx], 9
jne 0x418185
test byte [ebp + 0x114], 0x10
jne 0x418185
cmp edx, 2
je 0x4181ea
mov dword [esp + 0x2c], 1
jmp 0x418192
cmp edx, 1
je 0x4181ea
mov dword [esp + 0x2c], 2
xor edx, edx
mov dx, word [ecx + 2]
cmp edx, ebx
jne 0x4182c7
mov edx, dword [ebp]
cmp edx, dword [ebp + 4]
jne 0x4181b2
mov dl, byte [ebp + 0x14d]
test dl, dl
je 0x4181d9
mov edx, dword [esp + 0x7c]
test edx, edx
jne 0x4181c4
cmp edi, dword [esp + 0x3c]
je 0x4182e2
mov edx, dword [esp + 0x80]
test edx, edx
jne 0x4181d9
cmp edi, dword [esp + 0x34]
je 0x4182f3
mov edx, dword [esp + 0x30]
inc eax
add ecx, 6
inc edi
cmp eax, edx
jl 0x418163
mov dword [esp + 0x14], eax
cmp dword [esp + 0x38], eax
je 0x418596
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
or ebx, 0xffffffff
cmp eax, ecx
mov dword [esp + 0x78], 0
jl 0x418229
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
add edx, eax
mov eax, dword [esp + 0x34]
cmp edx, eax
jg 0x418229
mov dword [esp + 0x78], 1
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
mov edx, dword [ebp]
sub edi, eax
cmp edx, dword [ebp + 4]
mov dword [esp + 0x5c], edi
je 0x41826c
cmp dword [esp + 0x1c], ecx
jne 0x41826c
push 0
push 0
push eax
mov eax, dword [esp + 0x24]
push eax
mov ecx, ebp
mov dword [esp + 0x74], 1
call fcn.00417980
mov ecx, dword [esp + 0x10]
mov ebx, eax
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x60], ecx
test byte [ebp + 0x114], 0x10
je 0x418307
lea edi, [edi + edi*2]
shl edi, 1
push edi
call fcn.0041ed90
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x418596
mov edx, dword [esp + 0x20]
mov ecx, edi
mov edi, dword [edx + 4]
mov edx, eax
mov eax, ecx
add esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x5c]
test ecx, ecx
jle 0x418314
mov eax, edx
mov word [eax], 0x2a
add eax, 6
dec ecx
jne 0x4182ba
jmp 0x418314
mov edi, dword [esp + 0x44]
lea edx, [eax + eax*2]
xor ecx, ecx
mov dword [esp + 0x14], eax
mov cx, word [edi + edx*2 + 2]
mov dword [esp + 0x28], ecx
jmp 0x4181ee
mov dword [esp + 0x14], eax
mov dword [esp + 0x7c], 1
jmp 0x4181ee
mov dword [esp + 0x14], eax
mov dword [esp + 0x80], 1
jmp 0x4181ee
mov ecx, dword [esp + 0x20]
add esi, dword [ecx + 4]
mov dword [esp + 0x1c], esi
mov edx, esi
test edx, edx
je 0x418596
cmp ebx, 0xffffffff
jne 0x418338
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
push 0
push 0
push edx
push eax
mov ecx, ebp
call fcn.00417980
mov ebx, eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push 0
push 0
push ecx
push edx
mov ecx, ebp
call fcn.00417980
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x40]
mov ecx, ebp
lea esi, [eax*8]
sub esi, eax
mov eax, dword [ebp + 0x1ac]
shl esi, 4
mov edi, esi
add edi, eax
call fcn.004152c0
push eax
push edi
mov edi, dword [esp + 0x50]
mov ecx, edi
call fcn.004806f0
mov eax, dword [esp + 0x78]
test eax, eax
je 0x41841c
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
add eax, ecx
mov ecx, dword [esp + 0x34]
cmp eax, ecx
jge 0x4183ae
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0x10]
add edx, eax
mov dword [esp + 0x74], edx
mov eax, dword [ebp + 0x144]
mov edx, dword [esp + 0x44]
mov ecx, ebx
sub edx, eax
sub ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
lea edx, [esp + 0x4c]
mov dword [esp + 0x58], ecx
lea eax, [esp + 0x4c]
push edx
lea ecx, [ebp + 0x11c]
push eax
push ecx
call fcn.0041dc80
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
add esp, 0xc
mov eax, 0xff000000
push eax
mov eax, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x54]
push eax
push ecx
push edx
mov ecx, edi
call fcn.0040d930
cmp dword [esp + 0x2c], 2
jne 0x418458
or eax, 0xffffffff
jmp 0x41842d
cmp dword [esp + 0x2c], 2
jne 0x418458
mov edx, dword [ebp + 0x1ac]
mov eax, dword [esi + edx + 0x58]
mov edx, dword [esp + 0x90]
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x18]
add edx, eax
push ecx
push edx
mov edx, dword [ebp + 0x144]
mov ecx, ebx
sub ecx, edx
push ecx
mov ecx, edi
call fcn.0040d4d0
test byte [ebp + 0x114], 0x10
je 0x41846e
mov edx, dword [esp + 0x1c]
push edx
call fcn.0041eda0
add esp, 4
mov eax, dword [ebp + 0x1ac]
lea ecx, [esi + eax]
mov al, byte [esi + eax + 0x54]
test al, 8
je 0x4184bb
mov eax, dword [esp + 0x94]
mov esi, dword [esp + 0x10]
cdq
sub eax, edx
mov edx, dword [esp + 0x90]
sar eax, 1
add eax, edx
mov edx, dword [ecx + 0x58]
mov ecx, dword [ebp + 0x144]
push 0
push edx
mov edx, dword [esp + 0x4c]
add eax, esi
mov esi, dword [edi]
sub edx, ecx
push eax
push edx
mov edx, ebx
sub edx, ecx
push eax
push edx
mov ecx, edi
call dword [esi + 4]
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x418596
mov esi, dword [esp + 0x20]
xor eax, eax
mov ecx, dword [esi + 4]
mov ax, word [ecx + 4]
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x1b0]
mov ecx, dword [eax + edx*4 + 0x2c]
test ecx, ecx
je 0x418596
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41851c
mov ecx, dword [ebp + 0x150]
mov ecx, dword [ecx + eax*4 - 4]
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x41851c
lea edx, [eax + eax*2]
mov eax, dword [ecx + 4]
mov ax, word [eax + edx*2 - 6]
cmp ax, 0xa
je 0x41851c
cmp ax, 0xd
jne 0x418596
push 0
push 0x168
mov ecx, ebp
call fcn.004171f0
mov edx, dword [ebp + 0x144]
mov ecx, dword [esi + 4]
sub ebx, edx
mov edx, dword [ecx]
sub ebx, eax
mov dword [esp + 0x84], edx
mov ax, word [ecx + 4]
mov ecx, ebp
mov word [esp + 0x88], ax
call fcn.004152c0
xor ecx, ecx
cmp eax, 6
setl cl
dec ecx
mov eax, 0xff000000
and ecx, 0x1f8d
push eax
mov eax, dword [esp + 0x94]
add ecx, 0x95
mov word [esp + 0x88], cx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x88]
push 1
add eax, ecx
push edx
push eax
push ebx
mov ecx, edi
call fcn.0040d4d0
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
je 0x4185a3
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
cmp eax, edx
jl 0x4180ee
mov ebx, dword [esp + 0x24]
mov ecx, ebp
call fcn.00415900
test eax, eax
jne 0x418690
test dword [ebp + 0x114], 0x10000
jne 0x418690
mov al, byte [ebp + 0x14d]
test al, al
jne 0x418690
mov eax, dword [ebp + 0x1cc]
test eax, eax
je 0x418690
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x68]
cmp ecx, eax
jne 0x418690
mov ecx, dword [esp + 0x70]
mov esi, dword [ebp + 0x120]
mov edi, dword [ebp + 0x11c]
push 0
push 0
mov edx, eax
push ecx
push edx
mov ecx, ebp
call fcn.00417980
sub eax, dword [ebp + 0x144]
cmp edi, eax
jle 0x41862d
mov eax, edi
cmp eax, esi
jge 0x418633
mov esi, eax
mov eax, dword [esp + 0x40]
cmp eax, 0xffffffff
jne 0x418644
mov eax, dword [ebp + 0xc0]
jmp 0x41865a
mov edx, dword [ebp + 0x1ac]
lea ecx, [eax*8]
sub ecx, eax
shl ecx, 4
mov eax, dword [ecx + edx + 0x58]
mov edi, dword [esp + 0x94]
mov ecx, dword [esp + 0x48]
push 1
push eax
mov eax, dword [esp + 0x98]
mov edx, dword [ecx]
add eax, edi
mov edi, dword [esp + 0x18]
add eax, edi
push eax
push esi
push edi
push esi
call dword [edx + 4]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], 1
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x9c]
mov ecx, dword [ebp + 0x128]
add eax, edx
cmp eax, ecx
mov dword [esp + 0x10], eax
jg 0x4186cf
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov esi, dword [ecx + 0x1c]
mov ecx, dword [ebp + 0x154]
add ebx, esi
inc eax
cmp eax, ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], eax
jl 0x418053
mov eax, dword [esp + 0x64]
test eax, eax
je 0x41873e
mov eax, dword [ebp + 0x20]
mov byte [ebp + 0x14c], 1
test eax, eax
mov byte [esp + 0x28], 0
je 0x4186fb
mov edx, dword [eax]
mov eax, dword [edx + 0x198]
test eax, eax
setne al
mov byte [esp + 0x28], al
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x28]
lea ecx, [ebp + 0x68]
lea eax, [ebp + 0xe4]
push ecx
mov ecx, dword [esp + 0x64]
push esi
push edx
mov edx, dword [esp + 0x78]
push eax
push ecx
push edx
push ebp
call fcn.0047fe80
mov eax, dword [esi]
add esp, 0x1c
mov ecx, esi
mov byte [ebp + 0x14c], 0
call dword [eax + 0xc]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x90
ret 8
mov esi, dword [esp + 0x48]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x90
ret 8