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

Disassembly:
push 0xffffffffffffffff
push 0x4d7648
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov eax, dword [esp + 0x84]
push ebx
push ebp
mov ebp, dword [esp + 0x94]
push esi
push edi
lea edi, [esp + 0x24]
call fcn.004050d0
push eax
mov dword [esp + 0x7c], 0
call fcn.00418f20
mov edi, eax
mov dword [esp + 0x7c], 0xffffffff
mov eax, dword [esp + 0x28]
add esp, 4
test eax, eax
mov dword [esp + 0x28], edi
je 0x417611
push 0
lea ecx, [esp + 0xa0]
mov ebx, eax
call fcn.004ba9f7
mov eax, dword [ebx + 4]
test eax, eax
jbe 0x4175ec
cmp eax, 0xffffffff
jae 0x4175ec
add eax, 0xffffffff
mov dword [ebx + 4], eax
mov esi, dword [ebx + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x9c]
and esi, ebx
call fcn.004baa18
test esi, esi
je 0x417611
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
lea esi, [esp + 0x54]
mov ecx, edi
call fcn.00418570
mov ebx, 1
mov dword [esp + 0x78], ebx
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
movzx eax, ax
xor esi, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], esi
mov byte [esp + 0x3c], 0
mov ecx, dword [esp + 0x80]
add ecx, 8
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
lea eax, [esp + 0xa8]
mov byte [esp + 0x84], 2
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0xb0], 0x30
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.004bae08
mov al, byte [ebp]
add esp, 0x14
cmp al, 0x2b
je 0x417695
cmp al, 0x2d
mov dword [esp + 0x1c], esi
jne 0x417699
mov dword [esp + 0x1c], ebx
call fcn.0049fe81
mov edx, dword [eax]
mov edi, dword [esp + 0xac]
mov al, byte [edx]
push edi
push 0x65
push ebp
mov byte [esp + 0x20], al
mov byte [esp + 0x21], 0x65
mov byte [esp + 0x22], 0
call fcn.004a06b0
movsx ecx, byte [esp + 0x20]
add esp, 0xc
push edi
push ecx
mov ebx, eax
push ebp
mov dword [esp + 0xa8], ebx
call fcn.004a06b0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4176e9
mov dword [esp + 0xa8], eax
mov edx, dword [esp + 0x6c]
cmp edx, 0x10
mov eax, dword [esp + 0x58]
mov ecx, eax
jae 0x4176fc
lea ecx, [esp + 0x58]
cmp byte [ecx], 0x7f
je 0x417859
cmp edx, 0x10
jae 0x41770e
lea eax, [esp + 0x58]
cmp byte [eax], 0
jle 0x417859
push edi
push ebp
lea eax, [esp + 0x40]
call fcn.00407020
test ebx, ebx
jne 0x417741
mov eax, dword [esp + 0xa8]
push 0x30
lea edi, [esp + 0x3c]
call fcn.00407270
mov ebx, dword [esp + 0xa0]
jmp 0x41777e
test esi, esi
jne 0x41775b
mov eax, dword [esp + 0xa0]
push 0x30
lea edi, [esp + 0x3c]
call fcn.00407270
xor ebx, ebx
jmp 0x417762
mov ebx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa8]
mov eax, dword [esp + 0x9c]
push 0x30
push edx
sub eax, ebp
lea edi, [esp + 0x40]
call fcn.00407810
test esi, esi
push 0x30
lea edi, [esp + 0x3c]
jne 0x417791
mov eax, ebx
call fcn.00407270
jmp 0x4177bc
mov eax, dword [esp + 0xa8]
sub esi, ebp
push eax
lea eax, [esi + 1]
call fcn.00407810
push 0x30
push ebx
mov eax, esi
lea edi, [esp + 0x40]
call fcn.00407810
mov dword [esp + 0xa4], 0
mov ebp, dword [esp + 0x58]
mov eax, 0x10
cmp dword [esp + 0x6c], eax
mov dword [esp + 0xa0], 0
jae 0x4177da
lea ebp, [esp + 0x58]
cmp dword [esp + 0x50], eax
mov eax, dword [esp + 0x3c]
jae 0x4177e8
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.004a0570
mov esi, eax
mov al, byte [ebp]
add esp, 8
cmp al, 0x7f
je 0x417832
nop
test al, al
jle 0x417832
mov edx, esi
sub edx, dword [esp + 0x1c]
movsx eax, al
cmp eax, edx
jae 0x417832
sub esi, eax
push 0
push 1
mov eax, esi
lea edi, [esp + 0x40]
call fcn.00407810
cmp byte [ebp + 1], 0
jle 0x41782b
add ebp, 1
mov al, byte [ebp]
cmp al, 0x7f
jne 0x417800
cmp dword [esp + 0x50], 0x10
mov ebp, dword [esp + 0x3c]
jae 0x417841
lea ebp, [esp + 0x3c]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], eax
mov edi, eax
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
lea eax, [ecx + edx]
add eax, dword [esp + 0xa8]
mov edx, dword [esp + 0x94]
mov ecx, dword [edx + 0x18]
add eax, edi
test ecx, ecx
jle 0x417890
cmp ecx, eax
jbe 0x417890
sub ecx, eax
mov dword [esp + 0x9c], ecx
jmp 0x41789b
mov dword [esp + 0x9c], 0
mov eax, dword [edx + 0x10]
and eax, 0x1c0
cmp eax, 0x40
je 0x41799b
cmp eax, 0x100
je 0x417908
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
push eax
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0xa0]
mov edi, dword [esp + 0xa8]
mov dword [eax + 4], edx
lea ebx, [esp + 0x3c]
mov dword [eax + 8], ecx
call fcn.00418090
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov esi, dword [eax + 8]
add esp, 0x10
mov dword [esp + 0x9c], 0
jmp 0x4179b0
cmp dword [esp + 0x1c], 0
jbe 0x417972
mov edx, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
push 1
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0xa0]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x94]
mov ecx, ebp
call fcn.004183e0
mov esi, dword [eax]
mov edx, dword [eax + 4]
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0xb0]
add esp, 0x14
push eax
sub edi, 1
add ebp, 1
sub esp, 0xc
mov eax, esp
mov dword [esp + 0xbc], edi
mov dword [eax], esi
jmp 0x4178d7
mov eax, dword [esp + 0x9c]
mov esi, dword [esp + 0x88]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
push eax
sub esp, 0xc
mov eax, esp
mov dword [eax], esi
jmp 0x4178d7
mov esi, dword [esp + 0x90]
mov ebx, dword [esp + 0x8c]
mov edi, dword [esp + 0x88]
mov ecx, dword [esp + 0xac]
movsx edx, byte [esp + 0x14]
push ecx
push edx
push ebp
call fcn.004a06b0
add esp, 0xc
test eax, eax
je 0x417aa6
mov ecx, dword [esp + 0x20]
sub eax, ebp
add eax, 1
push ecx
mov dword [esp + 0x20], eax
add eax, 0xffffffff
push eax
push ebp
sub esp, 0xc
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
lea edx, [esp + 0x44]
mov dword [eax + 8], esi
mov eax, dword [esp + 0x98]
push edx
push eax
call fcn.004184a0
mov ecx, dword [esp + 0xc0]
mov edx, dword [eax]
mov edi, dword [esp + 0x38]
add esp, 0x20
push ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
lea ebx, [esp + 0x3c]
mov dword [ecx + 8], eax
call fcn.00418090
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov esi, dword [eax + 8]
mov eax, dword [edx + 4]
add esp, 0x10
call eax
push 1
movzx ecx, ax
sub esp, 0xc
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], edi
mov edi, ecx
lea ebx, [esp + 0x3c]
mov dword [eax + 8], esi
call fcn.00418090
mov ecx, dword [esp + 0xb4]
mov edx, dword [eax]
mov edi, dword [esp + 0x28]
add esp, 0x10
push ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
lea ebx, [esp + 0x3c]
mov dword [ecx + 8], eax
call fcn.00418090
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov esi, dword [eax + 8]
mov eax, dword [esp + 0x2c]
add esp, 0x10
add ebp, eax
sub dword [esp + 0xac], eax
mov ecx, dword [esp + 0xac]
push ecx
push 0x65
push ebp
call fcn.004a06b0
add esp, 0xc
test eax, eax
je 0x417b86
mov edx, dword [esp + 0x20]
sub eax, ebp
add eax, 1
push edx
mov dword [esp + 0xa4], eax
add eax, 0xffffffff
push eax
push ebp
sub esp, 0xc
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], esi
mov esi, dword [esp + 0x98]
lea eax, [esp + 0x44]
push eax
push esi
call fcn.004184a0
mov ecx, dword [esp + 0xc8]
mov edx, dword [eax]
mov edi, dword [esp + 0x38]
add esp, 0x20
push ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
lea ebx, [esp + 0x3c]
mov dword [ecx + 8], eax
call fcn.00418090
mov ecx, dword [esp + 0xa4]
add esp, 0x10
test byte [ecx + 0x10], 4
mov dword [esp + 0xa8], 0
mov ecx, 0x4e34d4
jne 0x417b48
mov ecx, 0x4e34d8
mov edi, dword [eax]
push 1
sub esp, 0xc
mov edx, esp
mov dword [edx], edi
mov edi, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [edx + 4], edi
mov dword [edx + 8], eax
lea edx, [esp + 0x3c]
push edx
mov eax, esi
call fcn.004183e0
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov esi, dword [eax + 8]
mov eax, dword [esp + 0xb4]
add esp, 0x14
add ebp, eax
sub dword [esp + 0xac], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xac]
push eax
push ecx
push ebp
sub esp, 0xc
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
lea edx, [esp + 0x44]
mov dword [eax + 8], esi
mov eax, dword [esp + 0x98]
push edx
push eax
call fcn.004184a0
mov ecx, dword [esp + 0xc8]
mov edx, dword [eax]
mov edi, dword [esp + 0x38]
add esp, 0x20
push ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
lea ebx, [esp + 0x3c]
mov dword [ecx + 8], eax
call fcn.00418090
mov edx, dword [eax]
mov esi, dword [eax + 4]
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0xa4]
mov edi, dword [esp + 0xa8]
mov ebx, dword [esp + 0x94]
mov dword [ecx + 0x18], 0
mov ecx, dword [esp + 0xac]
add esp, 0x10
push ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov dword [ecx + 4], esi
mov dword [ecx + 8], eax
call fcn.00418090
mov esi, 0x10
add esp, 0x10
cmp dword [esp + 0x50], esi
jb 0x417c3c
mov edx, dword [esp + 0x3c]
push edx
call fcn.0049f15f
add esp, 4
xor eax, eax
cmp dword [esp + 0x6c], esi
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], eax
mov byte [esp + 0x3c], al
jb 0x417c61
mov eax, dword [esp + 0x58]
push eax
call fcn.0049f15f
add esp, 4
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
add esp, 0x6c
ret