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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 8]
test esi, esi
je 0x46cc7c
mov dword [esp + 0x18], esi
jmp 0x46cc9b
cmp dword [edi + 0x78], 0
jne 0x46cc8e
mov eax, dword [edi]
test byte [eax + 0x50], 8
jne 0x46cc8e
mov byte [edi + 0x17], 1
mov ebx, edi
call fcn.0043c140
mov dword [esp + 0x18], eax
mov esi, eax
mov eax, dword [edi + 0x28]
add dword [edi + 0x38], 0xffffffff
mov ebx, dword [edi + 0x38]
sub eax, 1
cmp dword [ebp + 0x24], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ebx
jge 0x46cccc
mov ecx, dword [ebp + 0x18]
movzx edx, byte [ecx + 0x18]
push 0
push ebx
push edx
push 0x31
push esi
call fcn.0043c3f0
add esp, 0x14
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x14], 0
mov dword [esp + 0xc], 0
jle 0x46cdba
mov ecx, dword [ebp + 0x1c]
mov edx, dword [esp + 0xc]
movzx eax, word [ecx + edx*4]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
test byte [edx + 0x1c], 0x20
je 0x46cd55
test ax, ax
jl 0x46cd55
movsx ecx, ax
xor ebx, ebx
test ecx, ecx
mov dword [esp + 0x20], ebx
jle 0x46cd26
mov eax, dword [edx + 4]
add eax, 0xe
mov ebx, ecx
test byte [eax], 0x20
jne 0x46cd1e
add dword [esp + 0x20], 1
mov edi, dword [ebp + 8]
add eax, 0x10
sub ecx, 1
jne 0x46cd11
mov ecx, dword [edx + 4]
mov eax, ebx
shl eax, 4
test byte [eax + ecx + 0xe], 0x20
je 0x46cd4a
mov dx, word [edx + 0x24]
sub dx, word [esp + 0x20]
add dx, bx
mov ebx, dword [esp + 0x10]
movzx eax, dx
jmp 0x46cd58
movzx eax, word [esp + 0x20]
mov ebx, dword [esp + 0x10]
jmp 0x46cd58
movzx eax, ax
mov ecx, dword [ebp + 0x20]
movsx eax, ax
lea ecx, [eax + ecx + 1]
mov eax, dword [esi + 0x6c]
cmp dword [esi + 0x70], eax
jg 0x46cd7c
push 0
push ebx
push ecx
push 0x32
mov eax, esi
call fcn.0043c3b0
add esp, 0x10
jmp 0x46cda3
lea edx, [eax + 1]
mov dword [esi + 0x6c], edx
mov edx, dword [esi + 0x68]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov byte [eax], 0x32
mov word [eax + 2], dx
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x18]
add eax, 1
cmp eax, dword [ecx + 0x14]
mov dword [esp + 0xc], eax
jl 0x46cce1
cmp dword [ebp + 0x28], 0
jne 0x46d3eb
cmp dword [ebp + 0x14], 0
jne 0x46cf11
mov al, byte [edi + 0x13]
test al, al
jne 0x46cde2
add dword [edi + 0x2c], 1
mov edx, dword [edi + 0x2c]
mov dword [esp + 0x24], edx
jmp 0x46cdf5
sub al, 1
mov byte [edi + 0x13], al
movzx eax, al
mov ecx, dword [edi + eax*4 + 0xa0]
mov dword [esp + 0x24], ecx
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov ebx, dword [esp + 0x24]
mov ax, word [edx]
mov edi, dword [ecx]
push 0
push ebx
call fcn.00461390
mov edi, dword [ebp + 0x20]
movsx edx, ax
lea eax, [edx + edi + 1]
push eax
push 0x51
push esi
call fcn.0043c3f0
add esp, 0x14
push 0
push 0
push ebx
push 0xd
push esi
call fcn.0043c3f0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
add esp, 0x14
cmp ecx, dword [edx]
mov dword [esp + 0x2c], eax
jne 0x46ce6c
cmp dword [ebp + 0x24], 1
jne 0x46ce6c
mov eax, dword [esp + 0x10]
push ebx
push eax
push edi
push 0x35
push esi
call fcn.0043c3f0
mov eax, dword [esi + 0x6c]
add esp, 0x14
test eax, eax
jle 0x46ce6c
mov edx, dword [esi + 0x68]
lea ecx, [eax + eax*4]
mov word [edx + ecx*4 - 0x12], 0x90
mov eax, dword [esp + 0x1c]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push 0x70
push eax
mov eax, dword [ebp + 0x10]
push edi
call fcn.0046f0f0
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
add esp, 0xc
push ebx
push 0
push ecx
push 0x1f
push esi
call fcn.0043c3f0
mov edx, dword [esp + 0x24]
add esp, 0x14
push 0
push edx
push 0
push 9
push esi
call fcn.0043c3f0
mov ecx, dword [esi]
mov eax, dword [esi + 0x6c]
add esp, 0x14
cmp byte [ecx + 0x57], 0
je 0x46cec2
mov ecx, 0x4d6798
jmp 0x46cecc
mov ecx, dword [esi + 0x68]
lea edx, [eax + eax*4 - 0xa]
lea ecx, [ecx + edx*4]
mov dword [ecx + 8], eax
mov edx, dword [esi]
cmp byte [edx + 0x57], 0
mov ecx, dword [esi + 0x6c]
je 0x46cee1
mov eax, 0x4d6798
jmp 0x46ceee
mov eax, dword [esp + 0x2c]
mov edx, dword [esi + 0x68]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
test ebx, ebx
mov dword [eax + 8], ecx
je 0x46cf0a
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x46cf0a
movzx eax, al
mov dword [edi + eax*4 + 0xa0], ebx
add byte [edi + 0x13], 1
mov ebx, edi
jmp 0x46d3f7
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 0x14]
cmp ecx, 1
mov dword [esp + 0x14], ecx
jne 0x46cf48
mov al, byte [edi + 0x13]
test al, al
jne 0x46cf33
add dword [edi + 0x2c], ecx
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x20], eax
jmp 0x46cf6e
sub al, 1
movzx edx, al
mov byte [edi + 0x13], al
mov eax, dword [edi + edx*4 + 0xa0]
mov dword [esp + 0x20], eax
jmp 0x46cf6e
mov eax, dword [edi + 0x1c]
cmp ecx, eax
mov edx, dword [edi + 0x20]
jg 0x46cf5f
lea ebx, [edx + ecx]
sub eax, ecx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x1c], eax
jmp 0x46cf6a
mov eax, dword [edi + 0x2c]
lea edx, [eax + 1]
add eax, ecx
mov dword [edi + 0x2c], eax
mov dword [esp + 0x20], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x2c]
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
push 0x70
push esi
call fcn.0043c3f0
mov ecx, dword [ebp + 0x14]
mov ebx, dword [edi + 8]
add esp, 0x14
push ecx
push edi
call fcn.004671c0
add esp, 8
test eax, eax
je 0x46cfc5
mov ecx, dword [ebx]
cmp byte [ecx + 0x57], 0
je 0x46cfb1
mov edx, 0xfffffff8
call fcn.0043cde0
jmp 0x46cfc5
mov ecx, dword [ebx + 0x6c]
lea edx, [ecx + ecx*4]
mov ecx, dword [ebx + 0x68]
lea ecx, [ecx + edx*4 - 0x14]
mov byte [ecx + 1], pe_nt_image_headers32
mov dword [ecx + 0x10], eax
xor eax, eax
cmp dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
jle 0x46d0b3
mov edx, dword [esp + 0x20]
mov dword [esp + 0x24], edx
lea ecx, [ecx]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx]
test byte [edx + 0x1c], 0x20
mov ecx, dword [ebp + 0x1c]
movzx eax, word [ecx + eax*4]
je 0x46d043
test ax, ax
jl 0x46d043
movsx ecx, ax
xor ebx, ebx
xor edi, edi
test ecx, ecx
jle 0x46d020
mov eax, dword [edx + 4]
add eax, 0xe
mov ebx, ecx
lea ebx, [ebx]
test byte [eax], 0x20
jne 0x46d018
add edi, 1
add eax, 0x10
sub ecx, 1
jne 0x46d010
mov ecx, dword [edx + 4]
mov eax, ebx
shl eax, 4
test byte [eax + ecx + 0xe], 0x20
je 0x46d03e
mov dx, word [edx + 0x24]
sub dx, di
add dx, bx
movzx eax, dx
jmp 0x46d046
movzx eax, di
jmp 0x46d046
movzx eax, ax
mov ecx, dword [ebp + 0x20]
movsx eax, ax
lea ecx, [eax + ecx + 1]
mov eax, dword [esi + 0x6c]
cmp dword [esi + 0x70], eax
jg 0x46d06e
mov edx, dword [esp + 0x24]
push 0
push edx
push ecx
push 0x50
mov eax, esi
call fcn.0043c3b0
add esp, 0x10
jmp 0x46d099
lea edx, [eax + 1]
mov dword [esi + 0x6c], edx
mov edx, dword [esi + 0x68]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x24]
mov byte [eax], 0x50
mov word [eax + 2], dx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov eax, dword [esp + 0xc]
add dword [esp + 0x24], 1
add eax, 1
cmp eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
jl 0x46cfe0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
cmp edx, dword [eax]
jne 0x46d2b9
cmp dword [ebp + 0x24], 1
jne 0x46d2b9
mov eax, dword [esp + 0x14]
test eax, eax
mov ecx, dword [esi + 0x6c]
lea edx, [ecx + eax + 1]
mov dword [esp + 0x2c], edx
mov dword [esp + 0xc], 0
jle 0x46d26f
lea ebx, [ebx]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx]
test byte [edx + 0x1c], 0x20
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0xc]
movzx eax, word [eax + ecx*4]
je 0x46d153
test ax, ax
jl 0x46d153
movsx ecx, ax
xor ebx, ebx
xor edi, edi
test ecx, ecx
jle 0x46d130
mov eax, dword [edx + 4]
add eax, 0xe
mov ebx, ecx
mov edi, edi
test byte [eax], 0x20
jne 0x46d128
add edi, 1
add eax, 0x10
sub ecx, 1
jne 0x46d120
mov ecx, dword [edx + 4]
mov eax, ebx
shl eax, 4
test byte [eax + ecx + 0xe], 0x20
je 0x46d14e
mov dx, word [edx + 0x24]
sub dx, di
add dx, bx
movzx eax, dx
jmp 0x46d156
movzx eax, di
jmp 0x46d156
movzx eax, ax
movsx ecx, ax
mov eax, dword [ebp + 0x20]
lea edx, [ecx + eax + 1]
mov ecx, dword [ebp + 0x14]
add eax, 1
mov edi, eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 0xc]
test byte [ecx + 0x1c], 0x20
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0xc]
movzx eax, word [eax + edx*2]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edi
movzx eax, ax
je 0x46d1d6
test ax, ax
jl 0x46d1d6
movsx edx, ax
xor ebx, ebx
test edx, edx
mov dword [esp + 0x24], ebx
jle 0x46d1bb
mov eax, dword [ecx + 4]
add eax, 0xe
mov ebx, edx
test byte [eax], 0x20
jne 0x46d1b3
add dword [esp + 0x24], 1
mov edi, dword [esp + 0x30]
add eax, 0x10
sub edx, 1
jne 0x46d1a5
mov edx, dword [ecx + 4]
mov eax, ebx
shl eax, 4
test byte [eax + edx + 0xe], 0x20
je 0x46d210
mov ax, word [ecx + 0x24]
sub ax, word [esp + 0x24]
add ax, bx
movzx eax, ax
mov dx, word [esp + 0x34]
movsx ecx, ax
mov eax, dword [ebp + 0x10]
add edi, ecx
cmp dx, word [eax + 0x20]
jne 0x46d1ef
mov edi, dword [ebp + 0x20]
mov eax, dword [esi + 0x6c]
cmp dword [esi + 0x70], eax
jg 0x46d217
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push edi
push ecx
push edx
push 0x34
mov eax, esi
call fcn.0043c3b0
add esp, 0x10
jmp 0x46d246
movzx eax, word [esp + 0x24]
jmp 0x46d1d9
lea ecx, [eax + 1]
mov dword [esi + 0x6c], ecx
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x28]
xor ecx, ecx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x2c]
mov byte [eax], 0x34
mov word [eax + 2], cx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x46d25a
mov ecx, dword [esi + 0x68]
lea eax, [eax + eax*4]
mov word [ecx + eax*4 - 0x12], 0x10
mov eax, dword [esp + 0xc]
add eax, 1
cmp eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
jl 0x46d0f0
mov eax, dword [esi + 0x6c]
cmp dword [esi + 0x70], eax
jg 0x46d28e
mov edx, dword [esp + 0x10]
push 0
push edx
push 0
push 9
mov eax, esi
call fcn.0043c3b0
add esp, 0x10
jmp 0x46d2b9
lea ecx, [eax + 1]
mov dword [esi + 0x6c], ecx
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov byte [eax], 9
mov word [eax + 2], cx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov esi, dword [ebp + 0x14]
push ecx
call fcn.0046f1f0
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x6c]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
add esp, 4
cmp dword [esi + 0x70], ecx
mov dword [esp + 0x34], eax
jg 0x46d2f4
push 0
push edi
push ebx
push 0x60
mov eax, esi
call fcn.0043c3b0
add esp, 0x10
jmp 0x46d31d
lea edx, [ecx + 1]
mov dword [esi + 0x6c], edx
mov edx, dword [esi + 0x68]
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*4]
xor edx, edx
mov byte [eax], 0x60
mov word [eax + 2], dx
mov dword [eax + 4], ebx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov eax, ecx
mov ecx, dword [esp + 0x34]
push edi
push ecx
push eax
push esi
call fcn.0043cfb0
mov ecx, dword [esi + 0x6c]
add esp, 0x10
cmp dword [esi + 0x70], ecx
jg 0x46d34e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
push ebx
push edx
push eax
push 0x1d
mov eax, esi
call fcn.0043c3b0
add esp, 0x10
jmp 0x46d384
lea edx, [ecx + 1]
mov dword [esi + 0x6c], edx
mov edx, dword [esi + 0x68]
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x10]
mov byte [eax], 0x1d
mov word [eax + 2], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov eax, ecx
mov ecx, dword [esi]
cmp byte [ecx + 0x57], 0
jne 0x46d39c
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + edx*4]
mov byte [eax + 1], 0xfd
mov dword [eax + 0x10], edi
cmp edi, 1
jne 0x46d3c7
test ebx, ebx
je 0x46d3f0
mov ecx, dword [ebp + 8]
mov al, byte [ecx + 0x13]
cmp al, 8
jae 0x46d3f0
movzx edx, al
mov eax, ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + edx*4 + 0xa0], ecx
add byte [eax + 0x13], 1
mov ebx, eax
jmp 0x46d3f3
mov edx, dword [ebp + 8]
cmp edi, dword [edx + 0x1c]
mov esi, dword [esp + 0x18]
jle 0x46d3e7
mov ecx, dword [esp + 0x14]
mov eax, edx
mov edx, dword [esp + 0x20]
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], edx
mov ebx, eax
jmp 0x46d3f7
mov ebx, edx
jmp 0x46d3f7
mov ebx, dword [ebp + 8]
jmp 0x46d3f7
mov ebx, dword [ebp + 8]
mov esi, dword [esp + 0x18]
mov eax, dword [ebp + 0x18]
xor edx, edx
cmp byte [eax + 0x18], dl
jne 0x46d4b7
mov edi, dword [ebx]
mov eax, dword [edi + 0x20]
and eax, 0x80000
xor ecx, ecx
or eax, ecx
jne 0x46d4b7
cmp dword [ebx + 0x78], edx
jne 0x46d4b7
cmp byte [ebx + 0x14], al
jne 0x46d4b7
mov eax, dword [ebx + 8]
cmp eax, edx
jne 0x46d441
test byte [edi + 0x50], 8
jne 0x46d43c
mov byte [ebx + 0x17], 1
call fcn.0043c140
mov edi, eax
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x46d44c
mov ebx, eax
push 0
push 2
push 0x313
push 0x46
push edi
mov byte [ebx + 0x15], 1
call fcn.0043c3f0
mov ecx, dword [edi]
add esp, 0x14
cmp byte [ecx + 0x57], 0
je 0x46d478
xor eax, eax
or edx, 0xffffffff
call fcn.0043cde0
jmp 0x46d4a1
test eax, eax
jge 0x46d482
mov eax, dword [edi + 0x6c]
sub eax, 1
mov edx, dword [edi + 0x68]
lea ecx, [eax + eax*4]
cmp byte [edx + ecx*4 + 1], 0
lea ecx, [edx + ecx*4]
je 0x46d4a1
push 0
or eax, 0xffffffff
mov edx, edi
call fcn.0043ced0
add esp, 4
mov eax, dword [edi + 0x6c]
test eax, eax
jle 0x46d51d
mov ecx, dword [edi + 0x68]
lea eax, [eax + eax*4]
mov word [ecx + eax*4 - 0x12], 4
jmp 0x46d51d
mov edi, dword [ebp + 0x24]
cmp edi, edx
jle 0x46d4d4
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0x18], 0
jne 0x46d4d4
mov eax, dword [ebx + 0x78]
cmp eax, edx
je 0x46d4d0
mov ebx, eax
mov byte [ebx + 0x15], 1
mov eax, dword [esi + 0x6c]
cmp dword [esi + 0x70], eax
mov ecx, dword [ebp + 0x18]
movzx ecx, byte [ecx + 0x18]
jg 0x46d4f7
push edx
push edi
push ecx
push 0x9e
mov eax, esi
call fcn.0043c3b0
add esp, 0x10
jmp 0x46d51d
lea ebx, [eax + 1]
mov dword [esi + 0x6c], ebx
mov ebx, dword [esi + 0x68]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*4]
mov byte [eax], 0x9e
mov word [eax + 2], dx
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0
mov edi, dword [esi + 0xc]
mov ecx, dword [edi + 0x3c]
add ecx, dword [edi + 0x38]
mov eax, dword [esp + 0x10]
not eax
jns 0x46d53a
push eax
push esi
call fcn.0043ca00
add esp, 8
jmp 0x46d543
mov edx, dword [edi + 0x40]
mov ecx, dword [esi + 0x6c]
mov dword [edx + eax*4], ecx
mov eax, dword [esi + 0x6c]
cmp dword [esi + 0x70], eax
jg 0x46d567
mov edx, dword [esp + 0x1c]
push 0
push 0
push edx
push 0x7a
mov eax, esi
call fcn.0043c3b0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [eax + 1]
mov dword [esi + 0x6c], ecx
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x1c]
xor ecx, ecx
pop edi
pop esi
mov byte [eax], 0x7a
mov word [eax + 2], cx
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
pop ebx
mov esp, ebp
pop ebp
ret