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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
push edi
mov dword [esp + 0xc], esi
mov edi, dword [esi]
mov al, byte [esi + 0x92]
mov dword [esp + 0x38], edi
mov byte [esp + 0x17], al
test dword [edi + 0x1c], 0x4000
je 0x46c971
mov ecx, dword [edx + 0x48]
mov ebx, 0xfff0bdc0
mov dword [esp + 0x30], ebx
test ecx, ecx
je 0x46c2b5
mov edx, dword [edi + 0x14]
xor ebx, ebx
mov dword [esp + 0x30], ebx
test edx, edx
jle 0x46c2b1
mov eax, dword [edi + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x46c2ad
inc ebx
add eax, 0x10
cmp ebx, edx
jl 0x46c2a1
mov dword [esp + 0x30], ebx
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 0x10]
add ebx, ebx
mov ecx, dword [eax + ebx*8]
mov ebx, dword [edx + 0x10]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x3c], ebx
test ebx, ebx
je 0x46c6f2
cmp dword [ebp + 0x10], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x18], 0
je 0x46c353
mov ecx, dword [edx]
mov eax, dword [ebx + 8]
test ecx, ecx
jne 0x46c2fd
neg eax
sbb eax, eax
jmp 0x46c308
test eax, eax
je 0x46c30c
mov edx, eax
call fcn.004135a0
test eax, eax
je 0x46c34f
xor esi, esi
cmp dword [ebx + 0x14], esi
jle 0x46c6d7
lea edx, [ebx + 0x24]
nop word [eax + eax]
mov ecx, dword [edx]
mov eax, dword [ebp + 0x10]
cmp dword [eax + ecx*4], 0
jge 0x46c34b
mov eax, dword [esp + 0x10]
movsx eax, word [eax + 0x28]
cmp ecx, eax
jne 0x46c33d
cmp dword [ebp + 0x14], 0
jne 0x46c34b
inc esi
add edx, 8
cmp esi, dword [ebx + 0x14]
jl 0x46c320
jmp 0x46c6d7
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
cmp byte [esi + 0x92], 0
mov eax, dword [ebx + 8]
push ecx
je 0x46c36e
mov edx, eax
mov ecx, edi
call fcn.0045ae00
add esp, 4
jmp 0x46c37b
push eax
xor edx, edx
mov ecx, esi
call fcn.0045af50
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x46c590
lea ecx, [esp + 0x34]
mov edx, eax
push ecx
lea ecx, [esp + 0x2c]
push ecx
push ebx
mov ecx, esi
call fcn.0046a5f0
add esp, 0xc
test eax, eax
jne 0x46c58c
mov eax, dword [esp + 0x34]
test eax, eax
je 0x46c3b6
mov ecx, eax
mov dword [esp + 0x24], eax
jmp 0x46c3c5
mov eax, dword [ebx + 0x24]
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], ecx
xor esi, esi
cmp dword [ebx + 0x14], esi
jle 0x46c439
nop dword [eax]
mov eax, dword [esp + 0x10]
movsx eax, word [eax + 0x28]
cmp dword [ecx + esi*4], eax
jne 0x46c3e4
mov dword [ecx + esi*4], 0xffffffff
cmp dword [edi + 0x130], 0
je 0x46c433
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
test eax, eax
je 0x46c402
mov eax, dword [eax + 4]
movzx eax, word [eax + esi*2]
jmp 0x46c406
movzx eax, word [edx + 0x28]
push dword [esp + 0x30]
movsx ecx, ax
mov eax, dword [edx + 4]
add ecx, ecx
mov edx, dword [edx]
push dword [eax + ecx*8]
mov ecx, dword [esp + 0x14]
call fcn.0045a340
xor ecx, ecx
add esp, 8
cmp eax, 2
sete cl
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x24]
inc esi
cmp esi, dword [ebx + 0x14]
jl 0x46c3d0
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0xc]
mov ecx, esi
mov edx, dword [esp + 0x30]
push dword [eax]
push 0
push dword [eax + 0x1c]
call fcn.0045a4b0
inc dword [esi + 0x28]
add esp, 0xc
mov eax, dword [ebp + 8]
test eax, eax
je 0x46c482
push dword [esp + 0x18]
mov edx, dword [esp + 0x34]
mov ecx, esi
push 0xffffffffffffffff
push eax
push dword [esp + 0x30]
push ebx
push dword [esp + 0x3c]
push dword [esp + 0x38]
call fcn.0046a990
add esp, 0x1c
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x46c4d7
mov eax, dword [esi + 0x78]
mov ecx, esi
test eax, eax
cmovne ecx, eax
mov eax, dword [ecx + 0x1cc]
test eax, eax
je 0x46c4b5
mov eax, dword [eax]
cmp eax, dword [ebx + 0x1c]
jne 0x46c4aa
cmp byte [ebx + 0x19], 7
je 0x46c4d7
cmp eax, dword [ebx + 0x20]
jne 0x46c4b5
cmp byte [ebx + 0x1a], 7
je 0x46c4d7
push dword [esp + 0x18]
mov ecx, esi
push 1
push edx
push dword [esp + 0x30]
mov edx, dword [esp + 0x40]
push ebx
push dword [esp + 0x3c]
push dword [esp + 0x38]
call fcn.0046a990
add esp, 0x1c
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x46c6db
cmp dword [edi + 0x1d0], 0
je 0x46c4fa
mov edx, ecx
mov ecx, edi
call fcn.0040ffa0
jmp 0x46c6db
cmp ecx, dword [edi + 0x128]
jb 0x46c51d
cmp ecx, dword [edi + 0x12c]
jae 0x46c51d
mov eax, dword [edi + 0x124]
mov dword [ecx], eax
mov dword [edi + 0x124], ecx
jmp 0x46c6db
cmp dword [0x4d9a98], 0
je 0x46c57d
mov eax, dword [0x4defd8]
test eax, eax
je 0x46c53d
push eax
call dword [0x4d9af4]
mov ecx, dword [esp + 0x38]
add esp, 4
push ecx
call dword [0x4d9ad0]
sub dword [0x4dede0], eax
add esp, 4
mov eax, dword [esp + 0x34]
dec dword [0x4dee04]
push eax
call dword [0x4d9ac8]
mov eax, dword [0x4defd8]
add esp, 4
test eax, eax
je 0x46c6db
push eax
call dword [0x4d9afc]
add esp, 4
jmp 0x46c6db
push ecx
call dword [0x4d9ac8]
add esp, 4
jmp 0x46c6db
mov eax, dword [esp + 0x20]
cmp byte [esp + 0x17], 0
je 0x46c971
cmp byte [edi + 0x49], 0
jne 0x46c971
test eax, eax
jne 0x46c6db
mov esi, dword [esi + 8]
test esi, esi
jne 0x46c5d0
mov ecx, dword [esp + 0xc]
cmp dword [ecx + 0x78], esi
jne 0x46c5c9
mov eax, dword [ecx]
test byte [eax + 0x44], 8
jne 0x46c5c9
mov byte [ecx + 0x17], 1
call fcn.00434280
mov esi, eax
mov eax, dword [esi + 0x88]
mov edx, dword [ebx + 0x14]
inc eax
add eax, edx
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], eax
lea eax, [esi + 0xc]
mov dword [esp + 0x24], eax
test edx, edx
jle 0x46c67e
lea edi, [ebx + 0x24]
nop word [eax + eax]
mov eax, dword [esp + 0x24]
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 0x88]
inc edx
add edx, dword [edi]
mov eax, dword [eax]
cmp dword [eax + 0x30], ecx
jg 0x46c62f
push 0
push dword [esp + 0x1c]
mov ecx, esi
push edx
mov edx, 0x32
call fcn.00434530
add esp, 0xc
jmp 0x46c665
mov ebx, dword [esp + 0x3c]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x32
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x28]
add edi, 8
inc ecx
mov dword [esp + 0x28], ecx
cmp ecx, dword [ebx + 0x14]
jl 0x46c600
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov ecx, dword [esi + 0x88]
movzx edx, byte [ebx + 0x18]
cmp dword [eax + 0x30], ecx
jg 0x46c6a5
push 0
push 0xffffffffffffffff
push edx
mov edx, 0x91
mov ecx, esi
call fcn.00434530
add esp, 0xc
jmp 0x46c6d7
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0x91
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0xffffffff
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov esi, dword [esp + 0xc]
mov ebx, dword [ebx + 4]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x3c], ebx
test ebx, ebx
jne 0x46c2d0
mov ebx, dword [esp + 0x10]
push 0
mov ecx, dword [ebx + 0x48]
mov edx, dword [ebx]
add ecx, 0x38
call fcn.00414a50
add esp, 4
mov esi, dword [eax + 8]
mov dword [esp + 0x2c], esi
test esi, esi
je 0x46c971
nop word [eax + eax]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x3c], 0
test eax, eax
je 0x46c74f
push dword [ebp + 0x14]
mov edx, esi
mov ecx, ebx
push eax
call fcn.0046c140
add esp, 8
test eax, eax
je 0x46c962
cmp byte [esi + 0x18], 0
jne 0x46c772
test dword [edi + 0x1c], 0x80000
jne 0x46c772
mov edx, dword [esp + 0xc]
cmp dword [edx + 0x78], 0
jne 0x46c772
cmp byte [edx + 0x14], 0
je 0x46c962
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x1c]
mov edx, ebx
push eax
push esi
call fcn.0046a5f0
add esp, 0xc
test eax, eax
je 0x46c7a9
cmp byte [esp + 0x17], 0
je 0x46c971
cmp byte [edi + 0x49], 0
jne 0x46c971
jmp 0x46c962
push 0
push 0x58
mov ecx, edi
call fcn.00410430
mov ebx, dword [esp + 0x44]
mov edi, eax
add esp, 8
test edi, edi
je 0x46c8c6
push 0x50
lea ecx, [edi + 8]
mov dword [edi + 4], 1
push 0
push ecx
mov dword [edi], 1
call fcn.004ad600
mov ecx, dword [esp + 0x44]
add esp, 0xc
mov dword [edi + 0x38], 0xffffffff
cmp byte [ecx + 0x49], 0
je 0x46c801
mov edx, edi
mov edi, ecx
call fcn.004625e0
jmp 0x46c8ca
mov eax, dword [edi]
xor edx, edx
lea esi, [eax + eax*4]
add esi, esi
call fcn.0045bd70
mov dword [edi + esi*8 - 0x40], eax
mov dword [edi + esi*8 - 0x44], 0
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esi]
mov dword [edi + 0x18], ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [edi + 0x10], eax
inc dword [ecx + 0x20]
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x28]
mov dword [edi + 0x38], eax
inc dword [ecx + 0x28]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x46c862
push 0xffffffffffffffff
push eax
push ebx
push esi
push edx
push dword [esp + 0x24]
mov edx, edi
call fcn.0046b520
mov ecx, dword [esp + 0x24]
add esp, 0x18
mov edx, dword [esp + 0x18]
cmp dword [ebp + 8], 0
je 0x46c8b0
push 1
push dword [ebp + 8]
xor eax, eax
cmp dword [ebp + 0x10], eax
push ebx
setne al
push esi
push edx
push dword [esp + 0x24]
mov al, byte [eax + esi + 0x19]
mov edx, edi
mov byte [esp + 0x37], al
call fcn.0046b520
add esp, 0x18
cmp byte [esi + 0x18], 0
jne 0x46c8b0
mov al, byte [esp + 0x1f]
cmp al, 9
je 0x46c8b0
cmp al, 7
je 0x46c8b0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x78]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov dword [edi + 0x10], 0
mov edx, edi
mov edi, dword [esp + 0x38]
mov ecx, edi
call fcn.004625e0
jmp 0x46c8ca
mov edi, dword [esp + 0x38]
test ebx, ebx
je 0x46c95e
cmp dword [edi + 0x1d0], 0
je 0x46c8e6
mov edx, ebx
mov ecx, edi
call fcn.0040ffa0
jmp 0x46c95e
cmp ebx, dword [edi + 0x128]
jb 0x46c906
cmp ebx, dword [edi + 0x12c]
jae 0x46c906
mov eax, dword [edi + 0x124]
mov dword [ebx], eax
mov dword [edi + 0x124], ebx
jmp 0x46c95e
cmp dword [0x4d9a98], 0
je 0x46c954
mov eax, dword [0x4defd8]
test eax, eax
je 0x46c922
push eax
call dword [0x4d9af4]
add esp, 4
push ebx
call dword [0x4d9ad0]
sub dword [0x4dede0], eax
add esp, 4
dec dword [0x4dee04]
push ebx
call dword [0x4d9ac8]
mov eax, dword [0x4defd8]
add esp, 4
test eax, eax
je 0x46c95e
push eax
call dword [0x4d9afc]
jmp 0x46c95b
push ebx
call dword [0x4d9ac8]
add esp, 4
mov ebx, dword [esp + 0x10]
mov esi, dword [esi + 0xc]
mov dword [esp + 0x2c], esi
test esi, esi
jne 0x46c720
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret