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

Disassembly:
push 0xffffffffffffffff
push 0x73eb3f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x58], 0
mov al, byte [esp + 0x6c]
mov ebx, 1
push 0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x68], ebx
mov byte [esp + 0x3c], al
call fcn.00404760
mov edi, 0x7c4d78
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x7c4d78
lea ecx, [esp + 0x40]
call fcn.004047b0
mov eax, dword [ebp + 0x2f4]
mov byte [esp + 0x64], 2
test eax, eax
jne 0x46cc11
mov esi, dword [esp + 0x6c]
mov cl, byte [esp + 0x38]
push 0
mov byte [esi], cl
mov ecx, esi
call fcn.00404760
mov edx, dword [0x76560c]
lea eax, [esp + 0x38]
push edx
push 0
push eax
mov ecx, esi
call fcn.00404560
mov dword [esp + 0x58], ebx
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x68], bl
call fcn.00404760
push ebx
lea ecx, [esp + 0x74]
mov byte [esp + 0x68], 0
call fcn.00404760
jmp 0x46d1f5
mov esi, dword [esp + 0x74]
mov ebx, dword [esp + 0x78]
test esi, esi
mov dword [esp + 0x14], ebx
jne 0x46cc26
mov esi, 0x765608
mov cl, byte [esp + 0x6c]
push 0
mov byte [esp + 0x4c], cl
lea ecx, [esp + 0x4c]
call fcn.00404760
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x50]
call fcn.004047b0
mov ecx, dword [ebp + 0x2f4]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x4c]
push ebx
push eax
mov byte [esp + 0x70], 3
call fcn.00438080
test eax, eax
push 1
lea ecx, [esp + 0x4c]
sete bl
mov byte [esp + 0x68], 2
call fcn.00404760
test bl, bl
je 0x46ccb9
mov esi, dword [esp + 0x6c]
mov cl, byte [esp + 0x38]
push 0
mov byte [esi], cl
mov ecx, esi
call fcn.00404760
mov edx, dword [0x76560c]
lea eax, [esp + 0x38]
push edx
push 0
push eax
mov ecx, esi
call fcn.00404560
mov dword [esp + 0x58], 1
jmp 0x46ce35
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x80]
mov esi, dword [esp + 0x8c]
mov ebx, dword [esp + 0x84]
sub eax, ecx
mov cl, byte [esp + 0x6c]
sub esi, ebx
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov byte [esp + 0x28], cl
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dl, byte [esp + 0x6c]
mov byte [esp + 0x64], 4
push ebx
lea ecx, [esp + 0x84]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x84], dl
call fcn.00404760
mov edi, 0x7a3f5c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x7a3f5c
lea ecx, [esp + 0x88]
call fcn.004047b0
lea eax, [esp + 0x20]
lea ecx, [esp + 0x80]
push eax
push 2
push ecx
mov ecx, dword [ebp + 0x2f4]
mov byte [esp + 0x70], 5
call fcn.00438080
push 1
lea ecx, [esp + 0x84]
mov byte [esp + 0x68], 4
call fcn.00404760
cmp dword [esp + 0x24], esi
jle 0x46ce5a
mov dl, byte [esp + 0x6c]
push ebx
lea ecx, [esp + 0x84]
mov byte [esp + 0x84], dl
call fcn.00404760
mov edi, 0x7a49ac
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x7a49ac
lea ecx, [esp + 0x88]
call fcn.004047b0
mov ecx, dword [ebp + 0x2f4]
lea eax, [esp + 0x80]
push ebx
push eax
mov byte [esp + 0x6c], 6
call fcn.00435f90
push 1
lea ecx, [esp + 0x84]
mov byte [esp + 0x68], 4
call fcn.00404760
mov esi, dword [esp + 0x6c]
mov cl, byte [esp + 0x38]
push ebx
mov byte [esi], cl
mov ecx, esi
call fcn.00404760
mov edx, dword [0x76560c]
lea eax, [esp + 0x38]
push edx
push ebx
push eax
mov ecx, esi
call fcn.00404560
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push edx
lea ecx, [esp + 0x30]
mov dword [esp + 0x60], 1
mov byte [esp + 0x6c], 2
call fcn.006bc100
mov eax, dword [esp + 0x2c]
push eax
call fcn.00726ea6
add esp, 4
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x68], 1
call fcn.00404760
push 1
lea ecx, [esp + 0x74]
mov byte [esp + 0x68], 0
call fcn.00404760
jmp 0x46d1f5
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x80]
push ecx
push edx
lea ecx, [esp + 0x30]
mov dword [esp + 0x88], 0
call fcn.0046f080
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
cmp eax, ebp
jge 0x46d002
mov edi, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov esi, eax
cmp ecx, eax
jb 0x46ceb3
test edi, edi
je 0x46ceb3
lea ecx, [esp + 0x70]
call fcn.0040ac20
mov edi, dword [esp + 0x74]
mov eax, dword [esp + 0x10]
lea ecx, [edi + esi]
jmp 0x46ceb8
mov ecx, 0x765608
cmp byte [ecx], 0xa
jne 0x46ceef
inc eax
lea ecx, [ebp - 1]
xor ebx, ebx
cmp eax, ecx
mov dword [esp + 0x10], eax
jge 0x46cffa
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x30]
call fcn.0046f080
mov edi, dword [esp + 0x74]
mov eax, dword [esp + 0x10]
jmp 0x46cffa
mov ecx, dword [esp + 0x78]
mov esi, eax
cmp ecx, eax
jb 0x46cf13
test edi, edi
je 0x46cf13
lea ecx, [esp + 0x70]
call fcn.0040ac20
mov edi, dword [esp + 0x74]
mov eax, dword [esp + 0x10]
lea ecx, [edi + esi]
jmp 0x46cf18
mov ecx, 0x765608
mov cl, byte [ecx]
mov esi, eax
and cl, 0x80
neg cl
sbb ecx, ecx
neg ecx
inc ecx
mov ebp, ecx
mov ecx, dword [esp + 0x78]
cmp ecx, eax
jb 0x46cf45
test edi, edi
je 0x46cf45
lea ecx, [esp + 0x70]
call fcn.0040ac20
mov edx, dword [esp + 0x74]
add esi, edx
jmp 0x46cf4a
mov esi, 0x765608
mov al, byte [esp + 0x6c]
push 0
lea ecx, [esp + 0x84]
mov byte [esp + 0x84], al
call fcn.00404760
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x88]
call fcn.004047b0
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x84]
mov ecx, dword [eax + 0x2f4]
push ebp
push edx
mov byte [esp + 0x70], 7
call fcn.00438080
push 1
lea ecx, [esp + 0x84]
mov byte [esp + 0x68], 4
call fcn.00404760
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add ecx, ebx
cmp ecx, eax
jle 0x46cfe2
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
xor ebx, ebx
dec edx
cmp eax, edx
jge 0x46cfe6
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.0046f080
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x74]
add eax, ebp
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x10], eax
add ebx, ecx
cmp eax, ebp
jl 0x46ce8f
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jne 0x46d00e
xor ebx, ebx
jmp 0x46d017
mov ebx, dword [esp + 0x30]
sub ebx, ecx
sar ebx, 2
lea eax, [ebx - 1]
xor ebp, ebp
xor esi, esi
cmp eax, ebp
jle 0x46d0d5
mov eax, dword [ecx + esi*4 + 4]
mov edi, dword [ecx + esi*4]
sub eax, edi
cmp eax, ebp
jle 0x46d0c9
push eax
mov edx, edi
lea eax, [esp + 0x84]
push edx
push eax
lea ecx, [esp + 0x7c]
call fcn.0040aa70
mov ecx, dword [0x76560c]
mov byte [esp + 0x64], 8
push ecx
push ebp
push eax
lea ecx, [esp + 0x44]
call fcn.00413a70
push 1
lea ecx, [esp + 0x84]
mov byte [esp + 0x68], 4
call fcn.00404760
mov eax, dword [esp + 0x40]
cmp eax, ebp
jle 0x46d0c5
lea edi, [eax - 1]
cmp eax, edi
jb 0x46d09d
cmp dword [esp + 0x3c], ebp
je 0x46d09d
lea ecx, [esp + 0x38]
call fcn.0040ac20
mov edx, dword [esp + 0x3c]
lea eax, [edx + edi]
jmp 0x46d0a2
mov eax, 0x765608
cmp byte [eax], 0xa
je 0x46d0c5
mov edi, 0x7a3ea8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x7a3ea8
lea ecx, [esp + 0x40]
call fcn.00413b50
mov ecx, dword [esp + 0x2c]
inc esi
lea eax, [ebx - 1]
cmp esi, eax
jl 0x46d026
mov eax, dword [esp + 0x78]
mov edi, dword [ecx + ebx*4 - 4]
sub eax, edi
cmp eax, ebp
jle 0x46d13d
push eax
mov eax, dword [ecx + esi*4]
lea ecx, [esp + 0x84]
push eax
push ecx
lea ecx, [esp + 0x7c]
call fcn.0040aa70
mov edx, dword [0x76560c]
lea ecx, [esp + 0x38]
push edx
push ebp
push eax
mov byte [esp + 0x70], 9
call fcn.00413a70
mov eax, dword [esp + 0x84]
mov byte [esp + 0x64], 4
cmp eax, ebp
je 0x46d13d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x46d134
cmp al, 0xff
je 0x46d134
dec al
mov byte [ecx], al
jmp 0x46d13d
push ecx
call fcn.00726ea6
add esp, 4
mov esi, dword [esp + 0x6c]
mov al, byte [esp + 0x38]
lea edx, [esp + 0x38]
mov byte [esi], al
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov ecx, dword [0x76560c]
push ecx
push ebp
push edx
mov ecx, esi
call fcn.00404560
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x58], 1
push eax
mov byte [esp + 0x68], 2
call fcn.00726ea6
mov eax, dword [esp + 0x40]
add esp, 4
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
cmp eax, ebp
mov byte [esp + 0x64], 1
je 0x46d1b4
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x46d1ab
cmp al, 0xff
je 0x46d1ab
dec al
mov byte [ecx], al
jmp 0x46d1b4
push ecx
call fcn.00726ea6
add esp, 4
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
cmp ecx, ebp
mov byte [esp + 0x64], 0
je 0x46d1e9
mov al, byte [ecx - 1]
test al, al
je 0x46d1df
cmp al, 0xff
je 0x46d1df
dec al
mov byte [ecx - 1], al
jmp 0x46d1e9
dec ecx
push ecx
call fcn.00726ea6
add esp, 4
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], ebp
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0x24