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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 8]
test esi, esi
jne 0x46cabd
push edi
call fcn.0045e360
add esp, 4
mov esi, eax
mov ecx, dword [esi + 0x18]
mov eax, dword [edi + 0x48]
dec eax
push ebx
mov ebx, dword [ecx + 0x74]
mov dword [ebp - 8], eax
lea eax, [ebx + 1]
mov dword [ecx + 0x74], eax
lea eax, [ebx - 1]
mov dword [ebp - 0x18], ecx
test ebx, eax
jne 0x46caf8
push 0
lea eax, [ebx*8 + 4]
push eax
push dword [ecx + 0x78]
push dword [ecx]
call fcn.00487ad0
mov ecx, dword [ebp - 0x18]
add esp, 0x10
mov dword [ecx + 0x78], eax
mov eax, dword [ecx + 0x78]
test eax, eax
je 0x46cb06
mov dword [eax + ebx*4], 0xffffffff
or eax, 0xffffffff
sub eax, ebx
cmp dword [ebp + 0x24], 0
mov dword [ebp - 4], eax
jge 0x46cb28
mov ecx, dword [ebp + 0x18]
push eax
movzx eax, byte [ecx + 0x18]
push eax
push 0x3f
push esi
call fcn.004a4dc0
add esp, 0x10
mov eax, dword [ebp + 0x18]
xor ebx, ebx
cmp dword [eax + 0x14], ebx
jle 0x46cb98
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x20]
mov eax, dword [eax + ebx*4]
mov ecx, dword [esi + 0x20]
inc edx
add edx, eax
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x46cb5d
push 0
push edi
push edx
push 0x22
push esi
call fcn.00470460
add esp, 0x14
jmp 0x46cb8c
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
mov word [eax + ecx*4], 0x22
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebp + 0x18]
inc ebx
cmp ebx, dword [eax + 0x14]
jl 0x46cb35
mov edi, dword [ebp + 8]
cmp dword [ebp + 0x28], 0
jne 0x46d1f8
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x46ce16
mov al, byte [edi + 0x13]
test al, al
jne 0x46cbbc
inc dword [edi + 0x4c]
mov ebx, dword [edi + 0x4c]
jmp 0x46cbc8
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov ebx, dword [edi + eax*4 + 0x1c]
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x20]
mov eax, dword [eax]
mov ecx, dword [esi + 0x20]
inc edx
add edx, eax
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x46cbef
push 0
push ebx
push edx
push 0x53
push esi
call fcn.00470460
add esp, 0x14
jmp 0x46cc1e
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
mov word [eax + ecx*4], 0x53
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
mov dword [ebp + 8], edx
cmp dword [eax + 0x58], edx
jg 0x46cc41
push 0
push 0
push ebx
push 0x11
push esi
call fcn.00470460
add esp, 0x14
mov dword [ebp + 8], eax
jmp 0x46cc74
lea ecx, [edx + edx*4]
lea eax, [edx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x11
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
cmp eax, dword [ecx]
jne 0x46ccaf
cmp dword [ebp + 0x24], 1
jne 0x46ccaf
push ebx
push dword [ebp - 4]
push dword [ebp + 0x20]
push 0x25
push esi
call fcn.004a4e30
mov eax, dword [esi]
add esp, 0x14
cmp byte [eax + 0x45], 0
jne 0x46ccac
mov eax, dword [esi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov byte [eax + ecx*4 - 0x11], 0x90
mov eax, dword [ebp + 0x10]
push 0x66
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
push edi
call fcn.00495590
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
add esp, 0x14
cmp dword [eax + 0x58], ecx
jg 0x46ccdf
push ebx
push 0
push dword [ebp - 8]
push 0x20
push esi
call fcn.00470460
add esp, 0x14
jmp 0x46cd11
mov edx, dword [ebp - 8]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
mov word [eax + ecx*4], 0x20
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x46cd30
push 0
push dword [ebp - 4]
push 0
push 0xd
push esi
call fcn.00470460
add esp, 0x14
jmp 0x46cd66
mov edx, dword [ebp - 4]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
mov word [eax + ecx*4], 0xd
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
lea ecx, [edx - 1]
add edx, 0xfffffffe
mov dword [eax + 0x60], ecx
mov eax, dword [esi + 0x20]
mov dword [ebp + 0x28], eax
jns 0x46cd80
lea edx, [eax - 1]
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x46cd8f
mov eax, 0x53464c
jmp 0x46cd98
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp + 0x28]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
dec ecx
mov dword [eax + 0x60], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x20]
test ecx, ecx
jns 0x46cdb5
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x46cdc4
mov eax, 0x53464c
jmp 0x46cdcd
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
test ebx, ebx
je 0x46d1f8
mov dl, byte [edi + 0x13]
cmp dl, 8
jae 0x46d1f8
xor ecx, ecx
lea eax, [edi + 0x7c]
lea esp, [esp]
cmp dword [eax + 0xc], ebx
je 0x46ce0d
inc ecx
add eax, 0x14
cmp ecx, 0xa
jl 0x46cdf0
movzx eax, dl
mov dword [edi + eax*4 + 0x1c], ebx
inc byte [edi + 0x13]
jmp 0x46d1f8
mov byte [eax + 6], 1
jmp 0x46d1f8
mov ebx, dword [eax + 0x14]
mov ecx, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
mov dword [ebp - 0xc], eax
cmp ebx, ecx
jg 0x46ce32
add eax, ebx
sub ecx, ebx
mov dword [edi + 0x40], eax
mov dword [edi + 0x3c], ecx
jmp 0x46ce40
mov eax, dword [edi + 0x4c]
lea ecx, [eax + 1]
add eax, ebx
mov dword [ebp - 0xc], ecx
mov dword [edi + 0x4c], eax
mov al, byte [edi + 0x13]
test al, al
jne 0x46ce4f
inc dword [edi + 0x4c]
mov eax, dword [edi + 0x4c]
jmp 0x46ce5b
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov eax, dword [edi + eax*4 + 0x1c]
mov ecx, dword [esi + 0x20]
mov edx, dword [edx + 0x2c]
mov dword [ebp + 0x28], eax
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x46ce80
push dword [ebp + 0xc]
push edx
push dword [ebp - 8]
push 0x66
push esi
call fcn.00470460
add esp, 0x14
jmp 0x46ceae
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*4]
mov eax, dword [ebp - 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
mov word [ecx], 0x66
mov byte [ecx + 3], 0
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], 0
push dword [ebp + 0x14]
mov eax, dword [edi + 8]
push edi
mov dword [ebp - 0x10], eax
call fcn.00493b40
mov edx, eax
mov eax, dword [ebp - 0x10]
add esp, 8
mov ecx, dword [eax]
cmp byte [ecx + 0x45], 0
je 0x46cedb
push edx
push 0xfffffffffffffffa
push ecx
call fcn.0046e1f0
add esp, 0xc
jmp 0x46cf0e
mov eax, dword [eax + 0x20]
dec eax
lea ecx, [eax + eax*4]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x46cf03
push 0xfffffffffffffffa
push edx
push eax
push dword [ebp - 0x10]
call fcn.004b7760
add esp, 0x10
jmp 0x46cf0e
test edx, edx
je 0x46cf0e
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xfa
test ebx, ebx
jle 0x46cf91
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
xor edi, edi
lea ebx, [ebx]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
mov eax, dword [eax + edi*4]
inc ecx
add eax, ecx
mov ecx, dword [esi + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x46cf50
push 0
push edx
push dword [ebp - 0x14]
push 0x52
push esi
call fcn.00470460
mov edx, dword [ebp - 0x10]
add esp, 0x14
jmp 0x46cf85
mov edx, dword [ebp - 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp - 0x10]
mov word [eax + ecx*4], 0x52
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
inc edi
inc edx
mov dword [ebp - 0x10], edx
cmp edi, ebx
jl 0x46cf20
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
cmp eax, dword [ecx]
jne 0x46d0bd
cmp dword [ebp + 0x24], 1
jne 0x46d0bd
mov eax, dword [esi + 0x20]
inc eax
add eax, ebx
xor edx, edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
test ebx, ebx
jle 0x46d068
nop
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x20]
mov eax, dword [eax + edx*4]
inc edi
add edi, eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 4]
movzx ecx, word [eax + edx*2]
mov edx, dword [ebp + 0x20]
inc edx
movsx eax, cx
add eax, edx
mov edx, dword [ebp + 0x10]
cmp cx, word [edx + 0x20]
mov ecx, dword [esi + 0x20]
cmove eax, dword [ebp + 0x20]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x46d012
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push edi
push 0x24
push esi
call fcn.00470460
mov edx, dword [ebp - 0x10]
add esp, 0x14
jmp 0x46d043
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [ebp - 0x14]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [ebp - 0x18]
mov word [eax + ecx*4], 0x24
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
jne 0x46d059
mov eax, dword [esi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov byte [eax + ecx*4 - 0x11], 0x10
inc edx
mov dword [ebp - 0x10], edx
cmp edx, ebx
jl 0x46cfc0
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x46d087
push 0
push dword [ebp - 4]
push 0
push 0xd
push esi
call fcn.00470460
add esp, 0x14
jmp 0x46d0bd
mov edx, dword [ebp - 4]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
mov word [eax + ecx*4], 0xd
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push dword [ebp + 0x14]
push dword [edi]
call fcn.00491ea0
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ecx + 0x58], edx
jg 0x46d0ee
push dword [ebp + 0x28]
push ebx
push dword [ebp - 0xc]
push 0x60
push esi
call fcn.00470460
add esp, 0x14
mov edx, eax
jmp 0x46d122
mov edi, dword [ebp - 0xc]
lea ecx, [edx + edx*4]
lea eax, [edx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [ebp + 0x28]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [ebp + 8]
mov word [eax + ecx*4], 0x60
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi]
cmp byte [ecx + 0x45], 0
je 0x46d13f
cmp ebx, 0xfffffff6
je 0x46d18d
mov eax, dword [ebp - 0x10]
push eax
push ebx
push ecx
call fcn.0046e1f0
add esp, 0xc
jmp 0x46d18d
test edx, edx
jns 0x46d147
mov edx, dword [esi + 0x20]
dec edx
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
lea ecx, [eax + ecx*4]
test ebx, ebx
jns 0x46d17e
cmp byte [ecx + 1], 0
jne 0x46d17e
mov eax, dword [ebp - 0x10]
cmp ebx, 0xfffffff2
jne 0x46d16a
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], bl
jmp 0x46d18d
test eax, eax
je 0x46d18d
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], bl
cmp ebx, 0xfffffff6
jne 0x46d18d
inc dword [eax + 0xc]
jmp 0x46d18d
mov eax, dword [ebp - 0x10]
push ebx
push eax
push ecx
push esi
call fcn.004b7760
add esp, 0x10
push 0
push dword [ebp + 0x28]
push dword [ebp - 4]
push dword [ebp - 8]
push 0x1f
push esi
call fcn.004a4f10
add esp, 0x18
cmp dword [ebp + 0x28], 0
je 0x46d1dd
mov dl, byte [edi + 0x13]
cmp dl, 8
jae 0x46d1dd
xor ecx, ecx
lea eax, [edi + 0x7c]
mov edi, dword [ebp + 0x28]
cmp dword [eax + 0xc], edi
mov edi, dword [ebp + 8]
je 0x46d1d9
inc ecx
add eax, 0x14
cmp ecx, 0xa
jl 0x46d1b6
mov ecx, dword [ebp + 0x28]
movzx eax, dl
mov dword [edi + eax*4 + 0x1c], ecx
inc byte [edi + 0x13]
jmp 0x46d1dd
mov byte [eax + 6], 1
push ebx
push dword [ebp - 0xc]
push edi
call fcn.0048a020
add esp, 0xc
cmp ebx, dword [edi + 0x3c]
jle 0x46d1f8
mov eax, dword [ebp - 0xc]
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x40], eax
mov edx, dword [ebp + 0x18]
mov cl, byte [edx + 0x18]
test cl, cl
jne 0x46d2fb
mov eax, dword [edi]
test dword [eax + 0x18], 0x2000000
jne 0x46d2fb
cmp dword [edi + 0x1a0], 0
jne 0x46d2fb
cmp byte [edi + 0x14], cl
jne 0x46d2fb
mov ebx, dword [edi + 8]
test ebx, ebx
jne 0x46d23d
push edi
call fcn.0045e360
add esp, 4
mov ebx, eax
mov ecx, dword [edi + 0x1a0]
test ecx, ecx
cmovne edi, ecx
mov byte [edi + 0x15], 1
mov eax, dword [ebx + 0x18]
mov edx, dword [ebx + 0x20]
cmp dword [eax + 0x58], edx
jg 0x46d26f
push 0
push 2
push 0x313
push 0x49
push ebx
call fcn.00470460
add esp, 0x14
mov edx, eax
jmp 0x46d2a6
lea ecx, [edx + edx*4]
lea eax, [edx + 1]
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 4]
mov word [eax + ecx*4], 0x49
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0x313
mov dword [eax + ecx*4 + 8], 2
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx]
cmp byte [eax + 0x45], 0
je 0x46d2bd
push 0
push 0xfffffffffffffffe
push eax
call fcn.0046e1f0
add esp, 0xc
jmp 0x46d2e3
test edx, edx
jns 0x46d2c5
mov edx, dword [ebx + 0x20]
dec edx
mov eax, dword [ebx + 4]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x46d2e3
push 0xfffffffffffffffe
push 0
push eax
push ebx
call fcn.004b7760
add esp, 0x10
mov eax, dword [ebx]
cmp byte [eax + 0x45], 0
jne 0x46d367
mov eax, dword [ebx + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 4]
mov byte [eax + ecx*4 - 0x11], 4
jmp 0x46d367
mov ebx, dword [ebp + 0x24]
test ebx, ebx
jle 0x46d315
test cl, cl
jne 0x46d315
mov eax, dword [edi + 0x1a0]
test eax, eax
cmovne edi, eax
mov byte [edi + 0x15], 1
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
movzx edx, byte [edx + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x46d338
push 0
push ebx
push edx
push 0x8e
push esi
call fcn.00470460
add esp, 0x14
jmp 0x46d367
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
mov word [eax + ecx*4], 0x8e
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x18]
pop ebx
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x46d383
mov eax, dword [ebp - 4]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x20]
mov dword [ecx], eax
mov eax, dword [esi + 0x20]
dec eax
mov dword [edx + 0x60], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x46d3ad
push 0
push 0
push dword [ebp - 8]
push 0x6d
push esi
call fcn.00470460
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
pop edi
mov word [eax + ecx*4], 0x6d
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
pop esi
mov esp, ebp
pop ebp
ret