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

Disassembly:
push 0xffffffffffffffff
push 0x4e8700
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], edi
mov cx, word [0x50ff84]
mov eax, dword [0x50ff80]
mov dl, byte [0x50ff86]
xor ebx, ebx
mov word [esp + 0x3c], cx
push 6
push 0x50ff78
lea ecx, [esp + 0x20]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x40], eax
mov byte [esp + 0x46], dl
mov byte [esp + 0x38], 0x87
mov byte [esp + 0x39], 0x89
mov byte [esp + 0x3a], 0x91
mov byte [esp + 0x3b], 0xa3
mov byte [esp + 0x3c], 0xa5
mov byte [esp + 0x3d], 0x97
call fcn.004be240
lea ecx, [esp + 0x10]
mov byte [esp + 0x78], 1
call fcn.004be1a0
push 7
push 0x50ff70
lea ecx, [esp + 0x30]
mov byte [esp + 0x80], 2
call fcn.004be240
push 7
push 0x50ff68
lea ecx, [esp + 0x2c]
mov byte [esp + 0x80], 3
call fcn.004be240
push 1
push 0x50ff64
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 4
call fcn.004be240
mov al, byte [esp + 0x80]
mov dword [esp + 0x44], ebx
mov byte [esp + 0x40], al
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
push ebx
push ebx
push ebx
mov byte [esp + 0x84], 6
call fcn.00477920
mov ecx, dword [esp + 0x54]
add esp, 0xc
mov esi, eax
push ecx
push esi
lea ecx, [esp + 0x48]
call fcn.004776e0
lea edx, [esp + 0x28]
lea ecx, [esp + 0x40]
push edx
push 1
push esi
mov dword [esp + 0x54], esi
call fcn.004148e0
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x24]
push eax
push 1
push ecx
lea ecx, [esp + 0x4c]
call fcn.004148e0
lea edx, [esp + 0x20]
mov eax, dword [esp + 0x48]
push edx
push 1
push eax
lea ecx, [esp + 0x4c]
call fcn.004148e0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x40]
push ecx
push edx
mov ecx, edi
call fcn.0041efd0
test ax, ax
jne 0x4169a4
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
cmp esi, edi
mov byte [esp + 0x78], 5
je 0x416916
push ebx
mov ecx, esi
call fcn.004159d0
add esi, 4
cmp esi, edi
jne 0x416903
mov esi, dword [esp + 0x44]
push esi
call fcn.004de1a0
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x78], 4
call fcn.004be2e0
lea ecx, [esp + 0x24]
mov byte [esp + 0x78], 3
call fcn.004be2e0
lea ecx, [esp + 0x28]
mov byte [esp + 0x78], 2
call fcn.004be2e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x78], 1
call fcn.004be2e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], 0
call fcn.004be2e0
push 1
lea ecx, [esp + 0x88]
mov dword [esp + 0x7c], 7
call fcn.00414090
lea ecx, [esp + 0x80]
mov dword [esp + 0x78], 0xffffffff
call fcn.004be2e0
or ax, 0xffff
jmp 0x416ef4
lea ecx, [esp + 0x10]
call fcn.004be660
cmp ax, 0x2f
jle 0x416a13
push 0x2a
lea ecx, [esp + 0x14]
call fcn.004be4c0
push 0x2b
lea ecx, [esp + 0x14]
mov byte [0x50fdda], al
call fcn.004be4c0
push 0x2c
lea ecx, [esp + 0x14]
mov byte [0x50fddb], al
call fcn.004be4c0
push 0x2d
lea ecx, [esp + 0x14]
mov byte [0x50fddc], al
call fcn.004be4c0
push 0x2e
lea ecx, [esp + 0x14]
mov byte [0x50fddd], al
call fcn.004be4c0
push 0x2f
lea ecx, [esp + 0x14]
mov byte [0x50fdde], al
call fcn.004be4c0
mov byte [0x50fddf], al
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
mov cl, byte [esp + eax + 0x34]
lea eax, [esp + 0x3c]
mov byte [esp + 0x41], cl
push eax
mov ecx, edi
call fcn.0041b6a0
test ax, ax
jle 0x416ded
mov cl, byte [esp + 0x14]
add cl, 0xb
push ecx
push 5
lea ecx, [esp + 0x20]
call fcn.004be5e0
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.004be1b0
lea ecx, [esp + 0x84]
call fcn.004be4d0
mov edi, 0x520010
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x88]
push ebp
call fcn.004144a0
test al, al
je 0x416aba
mov edi, dword [esp + 0x88]
mov ecx, ebp
mov eax, ecx
mov esi, 0x520010
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x88]
call fcn.00414480
mov eax, dword [esp + 0x14]
cmp eax, 5
ja case.default.0x416ac7
jmp dword [eax*4 + 0x416f0c]
xor edi, edi
lea ecx, [edi + 5]
push ecx
lea ecx, [esp + 0x14]
call fcn.004be4c0
mov edx, dword [0x4f73d0]
mov ecx, dword [esp + 0x8c]
sub edx, ecx
mov bl, al
cmp edx, 1
ja 0x416af8
call fcn.004de1ab
mov eax, dword [esp + 0x8c]
push 0
lea ecx, [esp + 0x88]
lea esi, [eax + 1]
push esi
call fcn.004144a0
test al, al
je 0x416b3a
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
push esi
lea eax, [edx + ecx]
movsx ecx, bl
mov ch, cl
mov byte [eax], cl
lea ecx, [esp + 0x88]
call fcn.00414480
inc edi
cmp edi, 0xb
jl 0x416ad0
mov eax, dword [0x4f73d0]
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x88]
push 0
push ecx
lea ecx, [edx + 0x30]
call fcn.00413e90
jmp 0x416dcd
xor edi, edi
lea eax, [edi + 5]
lea ecx, [esp + 0x10]
push eax
call fcn.004be4c0
mov ecx, dword [0x4f73d0]
mov edx, dword [esp + 0x8c]
sub ecx, edx
mov bl, al
cmp ecx, 1
ja 0x416b8b
call fcn.004de1ab
mov edx, dword [esp + 0x8c]
push 0
lea ecx, [esp + 0x88]
lea esi, [edx + 1]
push esi
call fcn.004144a0
test al, al
je 0x416bcc
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
movsx edx, bl
add eax, ecx
mov dh, dl
push esi
lea ecx, [esp + 0x88]
mov byte [eax], dl
call fcn.00414480
inc edi
cmp edi, 4
jl 0x416b63
jmp 0x416dcd
xor edi, edi
lea edx, [edi + 5]
lea ecx, [esp + 0x10]
push edx
call fcn.004be4c0
mov edx, dword [esp + 0x8c]
mov bl, al
mov eax, dword [0x4f73d0]
sub eax, edx
cmp eax, 1
ja 0x416c00
call fcn.004de1ab
mov ecx, dword [esp + 0x8c]
push 0
lea esi, [ecx + 1]
lea ecx, [esp + 0x88]
push esi
call fcn.004144a0
test al, al
je 0x416c41
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
movsx ecx, bl
add eax, edx
mov ch, cl
push esi
mov byte [eax], cl
lea ecx, [esp + 0x88]
call fcn.00414480
inc edi
cmp edi, 0xb
jl 0x416bd9
jmp 0x416dcd
xor edi, edi
lea eax, [edi + 5]
lea ecx, [esp + 0x10]
push eax
call fcn.004be4c0
mov ecx, dword [0x4f73d0]
mov edx, dword [esp + 0x8c]
sub ecx, edx
mov bl, al
cmp ecx, 1
ja 0x416c76
call fcn.004de1ab
mov edx, dword [esp + 0x8c]
push 0
lea ecx, [esp + 0x88]
lea esi, [edx + 1]
push esi
call fcn.004144a0
test al, al
je 0x416cb7
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
movsx edx, bl
add eax, ecx
mov dh, dl
push esi
lea ecx, [esp + 0x88]
mov byte [eax], dl
call fcn.00414480
inc edi
cmp edi, 3
jl 0x416c4e
jmp 0x416dcd
push 9
lea ecx, [esp + 0x14]
call fcn.004be4c0
mov dl, al
push 0xa
and edx, 0xff
lea ecx, [esp + 0x14]
shl edx, 8
mov dword [esp + 0x30], edx
call fcn.004be4c0
mov edx, dword [esp + 0x2c]
and eax, 0xff
add edx, eax
lea eax, [esp + 0x50]
push edx
push 0x50f930
push eax
call fcn.004de8d6
lea edi, [esp + 0x5c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x88]
push ebp
call fcn.004144a0
test al, al
je case.default.0x416ac7
mov edi, dword [esp + 0x88]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x88]
mov dword [esp + 0x8c], ebp
mov byte [eax + ebp], 0
jmp case.default.0x416ac7
xor edi, edi
lea ecx, [edi + 5]
push ecx
lea ecx, [esp + 0x14]
call fcn.004be4c0
mov edx, dword [0x4f73d0]
mov ecx, dword [esp + 0x8c]
sub edx, ecx
mov bl, al
cmp edx, 1
ja 0x416d85
call fcn.004de1ab
mov eax, dword [esp + 0x8c]
push 0
lea ecx, [esp + 0x88]
lea esi, [eax + 1]
push esi
call fcn.004144a0
test al, al
je 0x416dc7
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
push esi
lea eax, [edx + ecx]
movsx ecx, bl
mov ch, cl
mov byte [eax], cl
lea ecx, [esp + 0x88]
call fcn.00414480
inc edi
cmp edi, 0xd
jl 0x416d5d
xor ebx, ebx
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x80]
push edx
push 1
lea ecx, [eax + 4]
mov eax, dword [eax + 0xc]
push eax
call fcn.004145d0
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 6
mov dword [esp + 0x14], eax
jl 0x416a17
mov eax, dword [edi + 8]
cmp eax, ebx
jne 0x416e0a
xor ebp, ebp
jmp 0x416e22
mov ecx, dword [edi + 0xc]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ebp, edx
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
cmp esi, edi
mov byte [esp + 0x78], 5
je 0x416e45
mov ecx, esi
call fcn.004be2e0
add esi, 4
cmp esi, edi
jne 0x416e33
mov esi, dword [esp + 0x44]
push esi
call fcn.004de1a0
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x78], 4
call fcn.004be2e0
lea ecx, [esp + 0x24]
mov byte [esp + 0x78], 3
call fcn.004be2e0
lea ecx, [esp + 0x28]
mov byte [esp + 0x78], 2
call fcn.004be2e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x78], 1
call fcn.004be2e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], 0
call fcn.004be2e0
mov eax, dword [esp + 0x88]
mov dword [esp + 0x78], 0xffffffff
cmp eax, ebx
je 0x416ed0
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x416ec7
cmp al, 0xff
je 0x416ec7
dec al
mov byte [ecx], al
jmp 0x416ed0
push ecx
call fcn.004de1a0
add esp, 4
lea ecx, [esp + 0x80]
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
call fcn.004be2e0
mov ax, bp
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x6c
ret 0x14