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

Disassembly:
push 0xffffffffffffffff
push 0x48f998
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
mov esi, dword [esp + 0x70]
push edi
mov edi, ecx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x18], edi
call fcn.00425190
mov eax, dword [edi + 0x20]
lea ecx, [esp + 0x34]
push eax
push ecx
mov ecx, dword [edi + 0xc]
call fcn.0043e3d0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x6c], 0
test eax, eax
je 0x46fac9
mov dl, byte [esp + 0x34]
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], dl
call fcn.004024d0
mov eax, dword [0x49014c]
lea ecx, [esp + 0x34]
push eax
push 0
push ecx
lea ecx, [esp + 0x20]
call fcn.0040f3e0
mov ebp, dword [esp + 0x78]
mov byte [esp + 0x6c], 1
test ebp, ebp
je 0x46f7bb
push 1
lea edx, [esp + 0x78]
push 0
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x80], 0x3a
call fcn.004190f0
mov edi, eax
mov eax, dword [0x49014c]
cmp edi, eax
je 0x46f7bb
push edi
lea eax, [esp + 0x28]
push 0
push eax
lea ecx, [esp + 0x20]
call fcn.00418dd0
mov eax, dword [esp + 0x2c]
mov bl, 2
test eax, eax
mov byte [esp + 0x6c], bl
je 0x46f8cf
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x46f75d
mov eax, 0x490148
push 0xa
push 0
push eax
call fcn.0047fe0e
add esp, 0xc
mov byte [ebp], al
mov ecx, dword [0x49014c]
inc edi
push ecx
lea edx, [esp + 0x48]
push edi
push edx
lea ecx, [esp + 0x20]
call fcn.00418dd0
mov ecx, dword [0x49014c]
mov byte [esp + 0x6c], 3
push ecx
push 0
push eax
lea ecx, [esp + 0x20]
call fcn.0040f3e0
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x70], bl
call fcn.004024d0
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], 1
call fcn.004024d0
push 1
lea edx, [esp + 0x78]
push 0
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x80], 0x2c
call fcn.004190f0
mov edi, eax
mov eax, dword [0x49014c]
cmp edi, eax
mov ebx, 4
je 0x46f9b6
push edi
lea eax, [esp + 0x28]
push 0
push eax
lea ecx, [esp + 0x20]
call fcn.00418dd0
lea ebp, [edi + 1]
mov edi, 0x49de28
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x6c], bl
push ecx
push eax
push 0x49de28
lea ecx, [esp + 0x30]
mov dword [esp + 0x84], 0
call fcn.004190f0
cmp eax, dword [0x49014c]
jne 0x46f907
mov edi, 0x49e424
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push eax
push 0x49e424
lea ecx, [esp + 0x30]
call fcn.004190f0
cmp eax, dword [0x49014c]
jne 0x46f907
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x46f86f
mov eax, 0x490148
push 0xa
push 0
push eax
call fcn.0047fe0e
add esp, 0xc
lea ecx, [esp + 0x78]
mov dword [esp + 0x78], eax
mov eax, dword [esi + 8]
push ecx
push 1
push eax
mov ecx, esi
call fcn.0042add0
mov edx, dword [0x49014c]
lea eax, [esp + 0x44]
push edx
push ebp
push eax
lea ecx, [esp + 0x20]
call fcn.00418dd0
mov ecx, dword [0x49014c]
mov byte [esp + 0x6c], 6
push ecx
push 0
push eax
lea ecx, [esp + 0x20]
call fcn.0040f3e0
mov byte [esp + 0x6c], bl
push 1
lea ecx, [esp + 0x48]
jmp 0x46f96c
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], 1
call fcn.004024d0
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], 0
call fcn.004024d0
push 1
lea ecx, [esp + 0x38]
mov dword [esp + 0x70], 0xffffffff
call fcn.004024d0
jmp 0x46faed
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x46f914
mov eax, 0x490148
push 0x10
push 0
push eax
call fcn.0047fe0e
add esp, 0xc
mov dword [esp + 0x78], eax
mov eax, dword [esi + 8]
lea edx, [esp + 0x78]
push edx
push eax
mov ecx, esi
call fcn.0046fe10
mov eax, dword [0x49014c]
lea ecx, [esp + 0x54]
push eax
push ebp
push ecx
lea ecx, [esp + 0x20]
call fcn.00418dd0
mov edx, dword [0x49014c]
lea ecx, [esp + 0x14]
push edx
push 0
push eax
mov byte [esp + 0x78], 5
call fcn.0040f3e0
mov byte [esp + 0x6c], bl
push 1
lea ecx, [esp + 0x58]
call fcn.004024d0
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], 1
call fcn.004024d0
push 1
lea eax, [esp + 0x78]
push 0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x80], 0x2c
call fcn.004190f0
mov edi, eax
mov eax, dword [0x49014c]
cmp edi, eax
jne 0x46f7e9
xor edi, edi
cmp ebp, edi
jne 0x46fa3a
jmp 0x46f9b8
xor edi, edi
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x18]
cmp eax, 3
je 0x46f9e1
cmp eax, ebx
je 0x46f9e1
cmp eax, 5
je 0x46f9e1
cmp eax, 6
je 0x46f9e1
cmp eax, 7
je 0x46f9e1
cmp eax, 8
je 0x46f9e1
cmp eax, 9
jne 0x46fa0b
mov eax, dword [esp + 0x18]
cmp eax, edi
jne 0x46f9ee
mov eax, 0x490148
push 0x10
push edi
push eax
call fcn.0047fe0e
add esp, 0xc
lea edx, [esp + 0x74]
mov dword [esp + 0x74], eax
mov eax, dword [esi + 8]
push edx
push 1
push eax
jmp 0x46fa62
cmp eax, 0xd
jne 0x46fa3a
mov eax, dword [esp + 0x18]
cmp eax, edi
jne 0x46fa1d
mov eax, 0x490148
push 0x10
push edi
push eax
call fcn.0047fe0e
mov edx, dword [esi + 8]
add esp, 0xc
lea ecx, [esp + 0x74]
mov dword [esp + 0x74], eax
push ecx
push 1
push edx
jmp 0x46fa62
mov eax, dword [esp + 0x18]
cmp eax, edi
jne 0x46fa47
mov eax, 0x490148
push 0xa
push edi
push eax
call fcn.0047fe0e
mov ecx, dword [esi + 8]
add esp, 0xc
mov dword [esp + 0x74], eax
lea eax, [esp + 0x74]
push eax
push 1
push ecx
mov ecx, esi
call fcn.0042add0
mov ecx, dword [esp + 0x18]
cmp ecx, edi
je 0x46fa8d
mov al, byte [ecx - 1]
test al, al
je 0x46fa83
cmp al, 0xff
je 0x46fa83
dec al
mov byte [ecx - 1], al
jmp 0x46fa8d
dec ecx
push ecx
call fcn.0047e190
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x18], edi
cmp ecx, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
je 0x46fac2
mov al, byte [ecx - 1]
test al, al
je 0x46fab8
cmp al, 0xff
je 0x46fab8
dec al
mov byte [ecx - 1], al
mov eax, 1
jmp 0x46faef
dec ecx
push ecx
call fcn.0047e190
add esp, 4
mov eax, 1
jmp 0x46faef
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x46faed
mov al, byte [ecx - 1]
test al, al
je 0x46fae3
cmp al, 0xff
je 0x46fae3
dec al
mov byte [ecx - 1], al
jmp 0x46faed
dec ecx
push ecx
call fcn.0047e190
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 8