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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
mov ebx, dword [0x4a09d8]
push esi
push edi
mov edi, eax
mov al, 1
cmp al, byte [ecx + 1]
mov ecx, dword [0x4a13a4]
push 1
push 0
sbb esi, esi
and esi, dword [0x4a09dc]
push 0xffffffffffffffff
push 0x491918
mov dword [esp + 0x90], ebx
mov dword [esp + 0x98], esi
call 0x49e8b0
test ebx, ebx
je 0x46ab4b
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, ebx
call 0x49e8b0
xor ebx, ebx
cmp esi, ebx
je 0x46ab5e
push 1
push ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call 0x49e8b0
mov edx, dword [0x49d3c8]
xor eax, eax
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
test byte [edx + 0xc8], 1
jne 0x46abad
lea eax, [esp + 0x70]
push eax
call dword [fcn.0048d604]
push eax
call dword [fcn.0048d454]
test eax, eax
je 0x46af0c
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
add dword [ebp + 8], eax
add dword [ebp + 0xc], ecx
add dword [ebp + 0x10], eax
add dword [ebp + 0x14], ecx
push 0x2e
push edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call 0x4b0bf7
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x46ac23
inc esi
push 0x494afc
push esi
call 0x4aecb6
add esp, 8
test eax, eax
je 0x46ac0d
push 0x494b00
push esi
call 0x4aecb6
add esp, 8
test eax, eax
je 0x46ac0d
push 0x494b04
push esi
call 0x4aecb6
add esp, 8
test eax, eax
jne 0x46ac23
mov esi, dword [0x48d4cc]
push 0x31
call esi
push 0x32
mov dword [esp + 0x20], eax
call esi
mov dword [esp + 0x20], eax
mov ebx, edi
mov al, byte [ebx]
cmp al, 0x20
je 0x46ac2f
cmp al, 9
jne 0x46ac32
inc ebx
jmp 0x46ac25
cmp byte [ebx], 0x2a
jne 0x46aeca
jmp 0x46ac40
movsx ecx, byte [ebx + 1]
inc ebx
push ecx
call 0x4b1f90
add esp, 4
cmp eax, 0x48
je 0x46ae02
cmp eax, 0x57
je 0x46ad96
push 4
push 0x491e4c
push ebx
call 0x4af695
add esp, 0xc
test eax, eax
jne 0x46aca7
add ebx, 4
mov eax, ebx
call fcn.00444270
test al, al
je 0x46ac98
push 0x10
push 0
push ebx
call 0x4b0594
add esp, 0xc
mov dword [esp + 0x2c], eax
jmp 0x46ae6a
push ebx
call 0x4b0196
mov dword [esp + 0x30], eax
jmp 0x46ae67
push 5
push 0x494660
push ebx
call 0x4af695
add esp, 0xc
test eax, eax
jne 0x46ad42
push 0x1f
add ebx, 5
lea edx, [esp + 0xa4]
push ebx
push edx
call 0x4b28e0
add esp, 0xc
mov edi, 0x4918e4
lea eax, [esp + 0xa0]
mov byte [esp + 0xbf], 0
call fcn.00440bf0
test eax, eax
je 0x46acf5
mov byte [eax], 0
lea esi, [esp + 0xa0]
call 0x49d080
cmp eax, 0xffffffff
jne 0x46ad1e
push 0x10
mov eax, esi
push 0
push eax
call 0x4b0594
add esp, 0xc
mov dword [esp + 0x24], eax
jmp 0x46ae6a
mov ecx, eax
shr ecx, 8
movzx edx, al
movzx ecx, cl
shl edx, 8
shr eax, 0x10
or ecx, edx
movzx eax, al
shl ecx, 8
or ecx, eax
mov dword [esp + 0x24], ecx
jmp 0x46ae6a
mov eax, ebx
call fcn.00444270
test al, al
je 0x46ad60
push 0x10
push 0
push ebx
call 0x4b0594
add esp, 0xc
mov dword [esp + 0x10], eax
jmp 0x46ad6d
push ebx
call 0x4b0196
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jns 0x46ad7e
mov dword [esp + 0x10], 0
jmp 0x46ae6a
cmp eax, 0xff
jle 0x46ae6a
mov dword [esp + 0x10], 0xff
jmp 0x46ae6a
lea esi, [ebx + 1]
mov eax, esi
jmp 0x46ada0
mov cl, byte [eax]
cmp cl, 0x20
je 0x46adac
cmp cl, 9
jne 0x46adaf
inc eax
jmp 0x46ada0
mov cl, byte [eax]
test cl, cl
je 0x46adf6
cmp cl, 0x2d
je 0x46adbf
cmp cl, 0x2b
jne 0x46adc0
inc eax
cmp byte [eax], 0x30
jne 0x46adf6
mov cl, byte [eax + 1]
cmp cl, 0x78
je 0x46add2
cmp cl, 0x58
jne 0x46adf6
movsx ecx, byte [eax + 2]
push ecx
call 0x4b0339
add esp, 4
test eax, eax
je 0x46adf6
push 0x10
push 0
push esi
call 0x4b0594
add esp, 0xc
mov dword [esp + 0x1c], eax
jmp 0x46ae6a
push esi
call 0x4b0196
mov dword [esp + 0x20], eax
jmp 0x46ae67
lea esi, [ebx + 1]
mov eax, esi
mov cl, byte [eax]
cmp cl, 0x20
je 0x46ae13
cmp cl, 9
jne 0x46ae16
inc eax
jmp 0x46ae07
mov cl, byte [eax]
test cl, cl
je 0x46ae5d
cmp cl, 0x2d
je 0x46ae26
cmp cl, 0x2b
jne 0x46ae27
inc eax
cmp byte [eax], 0x30
jne 0x46ae5d
mov cl, byte [eax + 1]
cmp cl, 0x78
je 0x46ae39
cmp cl, 0x58
jne 0x46ae5d
movsx edx, byte [eax + 2]
push edx
call 0x4b0339
add esp, 4
test eax, eax
je 0x46ae5d
push 0x10
push 0
push esi
call 0x4b0594
add esp, 0xc
mov dword [esp + 0x20], eax
jmp 0x46ae6a
push esi
call 0x4b0196
mov dword [esp + 0x24], eax
add esp, 4
test ebx, ebx
je 0x46af0c
mov dl, byte [ebx]
test dl, dl
je 0x46af0c
lea esp, [esp]
mov ecx, 0x4918e4
mov al, 0x20
cmp dl, al
je 0x46aea9
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x46ae87
mov dl, byte [ebx + 1]
inc ebx
test dl, dl
jne 0x46ae80
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea edi, [ebx + 1]
mov eax, edi
mov edi, edi
mov cl, byte [eax]
cmp cl, 0x20
je 0x46aebc
cmp cl, 9
jne 0x46aebf
inc eax
jmp 0x46aeb0
cmp byte [eax], 0x2a
mov ebx, eax
je 0x46ac40
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
push 0
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x40]
push ecx
push edx
push eax
push edi
call 0x49d4c0
mov esi, eax
add esp, 0x18
mov dword [esp + 0x60], esi
test esi, esi
je 0x46af0c
push 0
call dword [fcn.0048d48c]
mov ebx, eax
mov dword [esp + 0x4c], ebx
test ebx, ebx
jne 0x46af1a
push esi
call dword [0x48d0f0]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [0x48d0f0]
xor eax, eax
cmp dword [esp + 0x38], 1
mov dword [esp + 0x64], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x68], eax
mov byte [esp + 0xd], al
jne 0x46afa6
lea ecx, [esp + 0x8c]
push ecx
push esi
call dword [0x48d46c]
test eax, eax
je 0x46af8f
push 1
lea edx, [esp + 0x12]
push edx
mov edx, dword [esp + 0xa0]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x48]
push ecx
push edx
mov eax, ebx
call fcn.0046a200
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xb0]
add esp, 0x14
push eax
call edi
mov ecx, dword [esp + 0x98]
push ecx
call edi
push esi
call 0x49dce0
mov esi, eax
add esp, 4
mov dword [esp + 0x60], eax
test esi, esi
je 0x46af0c
push 8
lea edx, [esp + 0x12]
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x48]
push ecx
push esi
mov eax, ebx
call fcn.0046a200
add esp, 0x14
mov dword [esp + 0x34], eax
test eax, eax
je 0x46b207
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov edx, dword [esp + 0x4c]
sub esi, dword [ebp + 8]
sub ebx, dword [ebp + 0xc]
push edx
inc esi
inc ebx
call dword [fcn.0048d0b4]
mov edi, eax
mov dword [esp + 0x64], edi
test edi, edi
je 0x46b207
mov eax, dword [esp + 0x4c]
push ebx
push esi
push eax
call dword [0x48d0a8]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x46b207
mov ecx, eax
push ecx
push edi
call dword [fcn.0048d0d8]
mov dword [esp + 0x68], eax
test eax, eax
je 0x46b207
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x4c]
push 0xcc0020
push edx
push eax
push ecx
push ebx
push esi
push 0
push 0
push edi
call dword [0x48d0a4]
test eax, eax
je 0x46b207
push 8
lea edx, [esp + 0x13]
push edx
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
mov eax, edi
call fcn.0046a200
mov edx, eax
add esp, 0x14
mov dword [esp + 0x20], edx
test edx, edx
je 0x46b207
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x28]
imul ecx, dword [esp + 0x48]
imul esi, dword [esp + 0x58]
cmp byte [esp + 0xe], 0
mov dword [esp + 0x44], ecx
mov dword [esp + 0x50], esi
jne 0x46b0a1
cmp byte [esp + 0xf], 0
je 0x46b0de
cmp dword [esp + 0x24], 0xffffffff
je 0x46b0b0
and dword [esp + 0x24], 0xf8f8f8
xor eax, eax
test esi, esi
jle 0x46b0c2
and dword [edx + eax*4], 0xf8f8f8
inc eax
cmp eax, esi
jl 0x46b0b6
mov edi, dword [esp + 0x34]
xor eax, eax
test ecx, ecx
jle 0x46b0f9
lea esp, [esp]
and dword [edi + eax*4], 0xf8f8f8
inc eax
cmp eax, ecx
jl 0x46b0d0
jmp 0x46b0e2
mov edi, dword [esp + 0x34]
test ecx, ecx
jle 0x46b0f9
lea eax, [edi + 3]
lea esp, [esp]
mov byte [eax], 0
add eax, 4
dec ecx
jne 0x46b0f0
mov ebx, dword [esp + 0x10]
cmp ebx, 1
jge 0x46b319
test esi, esi
jle 0x46b119
lea eax, [edx + 3]
mov ecx, esi
nop
mov byte [eax], 0
add eax, 4
dec ecx
jne 0x46b110
xor esi, esi
mov dword [esp + 0x18], esi
cmp dword [esp + 0x50], esi
jle 0x46b507
mov ebx, dword [edi]
mov dword [esp + 0x38], ebx
nop
mov eax, dword [esp + 0x20]
lea edi, [esi*4]
cmp dword [edi + eax], ebx
je 0x46b157
mov eax, dword [esp + 0x30]
test eax, eax
je 0x46b14d
cmp dword [eax], 0
jne 0x46b157
cmp ebx, dword [esp + 0x24]
jne 0x46b305
mov ecx, dword [esp + 0x28]
mov eax, esi
cdq
idiv ecx
mov esi, dword [esp + 0x58]
sub esi, eax
cmp dword [esp + 0x48], esi
jg 0x46b301
sub ecx, edx
cmp dword [esp + 0x3c], ecx
jg 0x46b301
mov esi, dword [esp + 0x18]
xor ebx, ebx
mov byte [esp + 0xd], 1
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x44], ebx
jle 0x46b20b
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
sub edx, eax
mov byte [esp + 0xd], 1
mov ecx, esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x54], edx
lea ebx, [ebx]
mov edx, dword [eax]
mov edi, dword [esp + 0x20]
cmp dword [edi + esi*4], edx
je 0x46b1d6
cmp dword [esp + 0x30], 0
je 0x46b1cc
mov edi, dword [esp + 0x54]
cmp dword [edi + eax], 0
jne 0x46b1d6
cmp edx, dword [esp + 0x24]
jne 0x46b2f8
inc ebx
cmp ebx, dword [esp + 0x3c]
jge 0x46b1e0
inc esi
jmp 0x46b1f5
mov edx, dword [esp + 0x28]
lea esi, [edx*4]
add dword [esp + 0x40], esi
xor ebx, ebx
add ecx, edx
mov esi, ecx
mov edx, dword [esp + 0x1c]
inc edx
add eax, 4
mov dword [esp + 0x1c], edx
cmp edx, dword [esp + 0x44]
jl 0x46b1b0
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x4c]
push edx
push 0
call dword [fcn.0048d5c4]
mov eax, dword [esp + 0x60]
mov ebx, dword [0x48d0f0]
push eax
call ebx
mov edi, dword [esp + 0x64]
test edi, edi
je 0x46b244
mov eax, dword [esp + 0x68]
test eax, eax
je 0x46b23d
push eax
push edi
call dword [fcn.0048d0d8]
push edi
call dword [fcn.0048d0c8]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x46b24f
push eax
call ebx
mov eax, dword [esp + 0x34]
test eax, eax
je 0x46b260
push eax
call 0x4b05bf
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x46b271
push eax
call 0x4b05bf
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x46b282
push eax
call 0x4b05bf
add esp, 4
cmp byte [esp + 0xd], 0
je 0x46af0c
mov ecx, dword [esp + 0x80]
test ecx, ecx
je 0x46b2b4
mov eax, esi
cdq
idiv dword [esp + 0x28]
push 0x18
mov eax, edx
sub eax, dword [esp + 0x74]
add eax, dword [ebp + 8]
cdq
push edx
push eax
mov eax, ecx
call fcn.004390d0
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x46b2d9
mov eax, esi
cdq
idiv dword [esp + 0x28]
push 0x18
sub eax, dword [esp + 0x78]
add eax, dword [ebp + 0xc]
cdq
push edx
push eax
mov eax, ecx
call fcn.004390d0
mov ecx, dword [0x4a13a4]
push 1
push 0
push 0xffffffffffffffff
push 0x4900b0
call 0x49e8b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [esp + 0x38]
mov byte [esp + 0xd], 0
mov esi, dword [esp + 0x18]
inc esi
mov dword [esp + 0x18], esi
cmp esi, dword [esp + 0x50]
jl 0x46b130
jmp 0x46b507
xor esi, esi
mov dword [esp + 0x18], esi
cmp dword [esp + 0x50], esi
jle 0x46b507
mov ecx, dword [esp + 0x28]
lea ecx, [ecx]
mov eax, esi
cdq
idiv ecx
mov edi, dword [esp + 0x58]
sub edi, eax
cmp dword [esp + 0x48], edi
jg 0x46b4f8
mov eax, ecx
sub eax, edx
cmp dword [esp + 0x3c], eax
jg 0x46b4f8
xor eax, eax
mov byte [esp + 0xd], 1
mov dword [esp + 0x5c], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x40], esi
cmp dword [esp + 0x44], eax
jle 0x46b20b
mov eax, dword [esp + 0x34]
lea ecx, [esi*4]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x30]
sub ecx, eax
mov byte [esp + 0xd], 1
mov dword [esp + 0x38], esi
mov edi, eax
mov dword [esp + 0x54], ecx
movzx eax, byte [edi + 2]
mov dl, byte [edi + 1]
cmp ebx, eax
jle 0x46b3a6
mov byte [esp + 0xe], 0
jmp 0x46b3ae
mov cl, al
sub cl, bl
mov byte [esp + 0xe], cl
movzx edx, dl
mov dword [esp + 0x84], edx
cmp ebx, edx
jle 0x46b3c3
mov byte [esp + 0x16], 0
jmp 0x46b3d1
mov ebx, dword [esp + 0x10]
mov cl, dl
sub cl, byte [esp + 0x10]
mov byte [esp + 0x16], cl
movzx ecx, byte [edi]
cmp ebx, ecx
jle 0x46b3df
mov byte [esp + 0x14], 0
jmp 0x46b3f0
mov dl, cl
sub dl, byte [esp + 0x10]
mov byte [esp + 0x14], dl
mov edx, dword [esp + 0x84]
mov ebx, dword [esp + 0x10]
mov esi, 0xff
sub esi, eax
cmp ebx, esi
jle 0x46b40a
mov eax, 0xff
mov byte [esp + 0x17], al
jmp 0x46b415
add al, bl
mov byte [esp + 0x17], al
mov eax, 0xff
mov esi, eax
sub esi, edx
cmp ebx, esi
jle 0x46b423
mov byte [esp + 0x15], al
jmp 0x46b429
add dl, bl
mov byte [esp + 0x15], dl
mov edx, eax
sub edx, ecx
cmp ebx, edx
jle 0x46b437
mov byte [esp + 0xf], al
jmp 0x46b43d
add cl, bl
mov byte [esp + 0xf], cl
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x40]
mov cl, byte [eax + esi*4 + 2]
mov dl, byte [eax + esi*4 + 1]
mov al, byte [eax + esi*4]
cmp cl, byte [esp + 0xe]
jb 0x46b474
cmp cl, byte [esp + 0x17]
ja 0x46b474
cmp dl, byte [esp + 0x16]
jb 0x46b474
cmp dl, byte [esp + 0x15]
ja 0x46b474
cmp al, byte [esp + 0x14]
jb 0x46b474
cmp al, byte [esp + 0xf]
jbe 0x46b48d
cmp dword [esp + 0x30], 0
je 0x46b485
mov eax, dword [esp + 0x54]
cmp dword [edi + eax], 0
jne 0x46b48d
mov ecx, dword [esp + 0x24]
cmp dword [edi], ecx
jne 0x46b4e7
mov eax, dword [esp + 0x5c]
inc eax
mov dword [esp + 0x5c], eax
cmp eax, dword [esp + 0x3c]
jge 0x46b4a3
inc esi
mov dword [esp + 0x40], esi
jmp 0x46b4c8
mov eax, dword [esp + 0x28]
lea ecx, [eax*4]
add dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x38]
add ecx, eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x1c]
inc eax
add edi, 4
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x44]
jge 0x46b207
mov ebx, dword [esp + 0x10]
jmp 0x46b394
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov byte [esp + 0xd], 0
inc esi
mov dword [esp + 0x18], esi
cmp esi, dword [esp + 0x50]
jl 0x46b330
mov ecx, dword [0x4a13a4]
push 1
push 0
push 0xffffffffffffffff
push 0x4916f4
call 0x49e8b0
jmp 0x46b20b