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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x519008]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, ecx
mov byte [esp + 0x1b], 0
push ebx
mov ebx, dword [ebp + 0x14]
xor ecx, ecx
push esi
push edi
mov edi, dword [eax + 8]
mov esi, edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x28], esi
mov ecx, dword [edi + 0x6c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x2c], edi
mov dword [esp + 0x64], ecx
cmp dword [edi + 0x70], ecx
jg 0x46dace
push 0
push 0
push 0
mov edx, 0x11
mov ecx, edi
call fcn.004c8320
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x64], eax
jmp 0x46db01
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x11
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edx + 0x10]
xor ecx, ecx
mov esi, dword [esi + 0x14]
mov ebx, dword [ebx + 0x40]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], ebx
xor ebx, ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x38], ecx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x18], ebx
lea eax, [eax + eax*2]
shl eax, 4
add eax, esi
mov dword [esp + 0x40], eax
cmp esi, eax
jae 0x46dd02
lea ecx, [ecx]
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x3c]
mov ebx, dword [esi]
mov eax, dword [eax]
or eax, dword [edi + 4]
mov edi, dword [esp + 0x2c]
jne 0x46dbbe
test byte [esi + 0xa], 2
jne 0x46dbbe
test byte [ebx + 4], 1
jne 0x46dbbe
mov eax, dword [edx + 0x2c]
lea ecx, [esp + 0x68]
mov edx, ebx
mov byte [esp + 0x7c], 3
mov dword [esp + 0x6c], fcn.004ae250
mov dword [esp + 0x70], 0x4ae490
mov dword [esp + 0x80], eax
call fcn.004b3e10
cmp byte [esp + 0x7c], 0
je 0x46dbb6
mov edx, ebx
mov ebx, dword [esp + 0x1c]
push 0
push 0
mov ecx, dword [ebx]
call fcn.004af580
mov edx, dword [esp + 0x58]
mov ecx, ebx
push eax
call fcn.004afe90
add esp, 0xc
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0x14]
cmp eax, dword [edx + 0x2c]
jne 0x46dcf1
movzx ecx, word [esi + 0xc]
test cl, 0x82
je 0x46dced
test byte [edx + 0x24], 8
je 0x46dbed
mov eax, dword [esi]
test byte [eax + 4], 1
jne 0x46dbed
test cl, cl
js 0x46dced
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
and ecx, dword [ebp + 0xc]
and eax, dword [ebp + 0x10]
or ecx, eax
jne 0x46dced
mov ecx, dword [esi + 0x1c]
test ecx, ecx
js 0x46dced
mov eax, dword [edx + 0x10]
add ecx, ecx
mov eax, dword [eax + 4]
mov dl, byte [eax + ecx*8 + 0xd]
mov ecx, dword [esi]
call fcn.004b0be0
test eax, eax
je 0x46dce9
mov ebx, dword [esi + 0x1c]
cmp ebx, 0x40
jl 0x46dc41
mov dword [esp + 0x14], 0
mov dword [esp + 0x34], bind
jmp 0x46dc57
mov eax, 1
xor edx, edx
mov ecx, ebx
call fcn.00421a50
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], edx
cmp byte [esp + 0x27], 0
jne 0x46dc83
mov eax, dword [esp + 0x58]
add ebx, ebx
mov ecx, dword [eax + 4]
push dword [ecx + ebx*8]
push dword [eax]
push str.automatic_index_on__s__s_
push 0x11c
call fcn.004ea8d0
add esp, 0x10
mov byte [esp + 0x27], 1
mov ebx, dword [esp + 0x14]
mov ecx, ebx
mov eax, dword [esp + 0x34]
and ecx, dword [esp + 0x38]
and eax, dword [esp + 0x18]
or ecx, eax
jne 0x46dce9
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x14], eax
push eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
call fcn.0046d4c0
add esp, 4
test eax, eax
jne 0x46e4aa
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
or dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [eax + 0x30]
or ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], ebx
mov dword [eax + ecx*4], esi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
jmp 0x46dcf5
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
add esi, 0x30
cmp esi, dword [esp + 0x40]
jb 0x46db40
movzx eax, cx
not ebx
mov ecx, dword [esp + 0x3c]
or ebx, 0x80000000
mov esi, 0x3f
mov word [ecx + 0x28], ax
mov word [ecx + 0x18], ax
mov eax, dword [esp + 0x38]
mov dword [ecx + 0x24], 0x4241
not eax
mov ecx, dword [edx + 0x38]
and eax, ecx
and ebx, dword [edx + 0x3c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x54], ecx
movzx ebx, word [eax + 0x2a]
mov dword [esp + 0x14], ebx
movzx eax, bx
cmp si, bx
jge 0x46dd59
mov dword [esp + 0x34], esi
jmp 0x46dd67
movsx esi, bx
mov dword [esp + 0x34], esi
xor esi, esi
cmp si, ax
jge 0x46dda5
mov edi, dword [esp + 0x34]
xor esi, esi
mov ebx, dword [esp + 0x10]
mov eax, 1
xor edx, edx
mov ecx, esi
call fcn.00421a50
and eax, dword [esp + 0x38]
and edx, dword [esp + 0x18]
or eax, edx
je 0x46dd8c
inc ebx
inc esi
cmp esi, edi
jl 0x46dd71
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x14]
cmp dword [edx + 0x3c], 0
jg 0x46ddc1
jl 0x46ddb1
test ecx, ecx
jae 0x46ddc1
mov ecx, dword [esp + 0x10]
movsx eax, bx
add ecx, 0xffffffc1
add ecx, eax
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x48]
mov ebx, dword [esp + 0x1c]
push eax
push 0
lea edx, [edx + 1]
mov ecx, dword [ebx]
call fcn.0049cee0
add esp, 8
mov dword [esp + 0x30], eax
test eax, eax
je 0x46e4ae
mov ecx, dword [esp + 0x3c]
xor ebx, ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x54], ebx
mov dword [ecx + 0x20], eax
mov ecx, dword [esp + 0x58]
mov dword [eax], str.auto_index
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x28]
mov esi, dword [eax + 0x14]
mov dword [esp + 0x14], esi
cmp esi, dword [esp + 0x40]
jae 0x46df40
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0x14]
cmp eax, dword [edx + 0x2c]
jne 0x46df2b
movzx ecx, word [esi + 0xc]
test cl, 0x82
je 0x46df2b
test byte [edx + 0x24], 8
je 0x46de53
mov eax, dword [esi]
test byte [eax + 4], 1
jne 0x46de53
test cl, cl
js 0x46df2b
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
and ecx, dword [ebp + 0xc]
and eax, dword [ebp + 0x10]
or ecx, eax
jne 0x46df2b
mov ecx, dword [esi + 0x1c]
test ecx, ecx
js 0x46df2b
mov eax, dword [edx + 0x10]
add ecx, ecx
mov eax, dword [eax + 4]
mov dl, byte [eax + ecx*8 + 0xd]
mov ecx, dword [esi]
call fcn.004b0be0
test eax, eax
je 0x46df27
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x48], ecx
cmp ecx, 0x40
jl 0x46dea2
xor eax, eax
mov edx, bind
jmp 0x46deae
mov eax, 1
xor edx, edx
call fcn.00421a50
mov esi, eax
mov ecx, edx
and esi, dword [esp + 0x5c]
and ecx, dword [esp + 0x54]
or esi, ecx
mov esi, dword [esp + 0x14]
jne 0x46df27
or dword [esp + 0x5c], eax
mov ecx, dword [esi]
mov eax, dword [edi + 4]
or dword [esp + 0x54], edx
mov edx, dword [esp + 0x48]
mov word [eax + ebx*2], dx
mov edx, dword [ecx + 0xc]
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x48], eax
test dword [edx + 4], 0x100
jne 0x46df0c
test eax, eax
je 0x46defb
test dword [eax + 4], 0x100
je 0x46defb
mov edx, eax
jmp 0x46df0c
mov ecx, dword [esp + 0x1c]
call fcn.004b0d90
test eax, eax
jne 0x46df1e
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x1c]
call fcn.004b0d90
mov ecx, 0x5071e8
test eax, eax
je 0x46df20
mov ecx, dword [eax]
mov eax, dword [edi + 0x20]
mov dword [eax + ebx*4], ecx
inc ebx
mov edx, dword [esp + 0x20]
add esi, 0x30
mov dword [esp + 0x14], esi
cmp esi, dword [esp + 0x40]
jb 0x46de24
mov edi, dword [esp + 0x2c]
xor esi, esi
cmp dword [esp + 0x34], esi
jle 0x46df87
mov edi, dword [esp + 0x30]
lea esp, [esp]
mov eax, 1
xor edx, edx
mov ecx, esi
call fcn.00421a50
and eax, dword [esp + 0x38]
and edx, dword [esp + 0x18]
or eax, edx
je 0x46df7c
mov eax, dword [edi + 4]
mov word [eax + ebx*2], si
mov eax, dword [edi + 0x20]
mov dword [eax + ebx*4], 0x5071e8
inc ebx
inc esi
cmp esi, dword [esp + 0x34]
jl 0x46df50
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x3c], 0
jg 0x46dfcd
jl 0x46df99
cmp dword [eax + 0x38], 0
jae 0x46dfcd
mov esi, dword [esp + 0x58]
mov eax, 0x3f
mov edx, dword [esp + 0x30]
cmp ax, word [esi + 0x2a]
jge 0x46dfd1
mov ecx, eax
mov edi, edi
mov eax, dword [edx + 4]
mov word [eax + ebx*2], cx
inc ecx
mov eax, dword [edx + 0x20]
mov dword [eax + ebx*4], 0x5071e8
inc ebx
movsx eax, word [esi + 0x2a]
cmp ecx, eax
jl 0x46dfb0
jmp 0x46dfd1
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 4]
or ecx, 0xffffffff
mov esi, dword [esp + 0x44]
mov word [eax + ebx*2], cx
mov eax, dword [edx + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
inc edx
mov dword [eax + ebx*4], 0x5071e8
mov eax, dword [ecx + 0x28]
mov dword [esi + 8], eax
inc dword [ecx + 0x28]
mov ecx, dword [edi + 0x6c]
mov esi, dword [esi + 8]
cmp dword [edi + 0x70], ecx
jg 0x46e01b
push 0
push edx
push esi
mov edx, 0x70
mov ecx, edi
call fcn.004c8320
add esp, 0xc
jmp 0x46e04a
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x2c]
mov dword [eax + ecx*4], 0x70
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x1c]
mov ecx, eax
mov edx, dword [esp + 0x30]
mov esi, dword [eax + 8]
call fcn.0049a6a0
mov edx, eax
test edx, edx
je 0x46e08c
mov ecx, dword [esi]
cmp byte [ecx + 0x51], 0
je 0x46e07a
push edx
mov edx, 0xfffffff7
call fcn.004c7440
add esp, 4
jmp 0x46e08c
mov eax, dword [esi + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov byte [eax + ecx*4 - 0x13], 0xf7
mov dword [eax + ecx*4 - 4], edx
mov edx, dword [esp + 0x44]
movzx eax, byte [edx + 0x2c]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
mov eax, dword [eax + 4]
test byte [eax + ecx*8 + 0x30], 0x10
lea esi, [eax + ecx*8]
mov dword [esp + 0x40], esi
je 0x46e19f
mov ecx, dword [edi + 0x6c]
mov edx, dword [esi + 0x24]
mov dword [esp + 0x14], edx
mov dword [esp + 0x60], ecx
cmp dword [edi + 0x70], ecx
jg 0x46e0e4
push 0
push 0
push 0
mov edx, 0x46
mov ecx, edi
call fcn.004c8320
mov edx, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x60], eax
jmp 0x46e117
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x46
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x6c]
mov esi, dword [esi + 0x20]
cmp dword [edi + 0x70], ecx
jg 0x46e13b
push esi
push 0
push edx
mov edx, 0xd
mov ecx, edi
call fcn.004c8320
mov edx, dword [esp + 0x20]
add esp, 0xc
jmp 0x46e16a
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x2c]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
mov esi, dword [edi + 0x6c]
cmp dword [edi + 0x70], esi
jg 0x46e18a
push 0
push 0
push edx
mov edx, 0xe
mov ecx, edi
call fcn.004c8320
add esp, 0xc
mov esi, eax
jmp 0x46e1f5
lea eax, [esi + 1]
mov dword [edi + 0x6c], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0xe
jmp 0x46e1d5
mov esi, dword [edi + 0x6c]
mov edx, dword [edx + 4]
cmp dword [edi + 0x70], esi
jg 0x46e1c2
push 0
push 0
push edx
mov edx, 0x24
mov ecx, edi
call fcn.004c8320
add esp, 0xc
mov esi, eax
jmp 0x46e1f5
lea eax, [esi + 1]
mov dword [edi + 0x6c], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x24
mov edi, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 4], edx
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x46e223
mov eax, dword [esp + 0x1c]
push 0x10
dec dword [eax + 0x38]
mov edx, dword [eax + 0x38]
push edx
push ecx
push eax
mov dword [esp + 0x5c], edx
call fcn.004a8d60
mov eax, dword [esp + 0x4c]
add esp, 0x10
or dword [eax + 0x24], 0x20000
mov ecx, dword [esp + 0x1c]
mov al, byte [ecx + 0x13]
test al, al
jne 0x46e236
inc dword [ecx + 0x2c]
mov eax, dword [ecx + 0x2c]
jmp 0x46e245
dec al
mov byte [ecx + 0x13], al
movzx eax, al
mov eax, dword [ecx + eax*4 + 0x94]
mov edx, dword [esp + 0x30]
push 0
push 0
push 0
push 0
push eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x58]
push dword [eax + 4]
call fcn.00498100
mov ecx, dword [edi + 0x6c]
add esp, 0x18
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 8]
mov dword [esp + 0x48], eax
cmp dword [edi + 0x70], ecx
jg 0x46e295
mov edx, dword [esp + 0x28]
mov ecx, edi
push 0
push edx
push eax
mov edx, 0x84
call fcn.004c8320
add esp, 0xc
jmp 0x46e2c8
mov edx, dword [esp + 0x48]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x84
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x6c]
test ecx, ecx
jle 0x46e2e2
mov eax, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
mov edx, 0x10
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [edi + 0x6c]
cmp dword [esp + 0x50], 0
je 0x46e316
mov edx, dword [edi + 0xc]
not dword [esp + 0x4c]
mov eax, dword [edx + 0x3c]
add eax, dword [edx + 0x38]
jns 0x46e30c
mov edx, dword [esp + 0x4c]
mov ecx, dword [edi + 0xc]
push edx
mov edx, edi
call fcn.004c7a90
add esp, 4
jmp 0x46e316
mov eax, dword [edx + 0x40]
mov edx, dword [esp + 0x4c]
mov dword [eax + edx*4], ecx
mov eax, dword [esp + 0x40]
test byte [eax + 0x30], 0x10
je 0x46e3ca
mov ecx, dword [esp + 0x60]
test ecx, ecx
jns 0x46e330
mov ecx, dword [edi + 0x6c]
dec ecx
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
je 0x46e33f
mov ecx, 0x51e9d8
jmp 0x46e348
mov eax, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x14]
mov edx, esi
add eax, ebx
mov ebx, dword [esp + 0x40]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
push dword [eax + 8]
push dword [ebx + 0x28]
push dword [eax + 4]
call fcn.0046e550
mov ecx, dword [edi + 0x6c]
add esp, 0xc
cmp dword [edi + 0x70], ecx
jg 0x46e395
push 0
push esi
push 0
mov edx, 0xb
mov ecx, edi
call fcn.004c8320
add esp, 0xc
and dword [ebx + 0x30], 0xffffffef
jmp 0x46e41f
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
and dword [ebx + 0x30], 0xffffffef
jmp 0x46e41f
mov eax, dword [esp + 0x44]
lea edx, [esi + 1]
mov ecx, dword [edi + 0x6c]
mov ebx, dword [eax + 4]
cmp dword [edi + 0x70], ecx
jg 0x46e3f1
push 0
push edx
push ebx
mov edx, 5
mov ecx, edi
call fcn.004c8320
add esp, 0xc
jmp 0x46e41f
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
lea edx, [esi + 1]
mov dword [eax + ecx*4], 5
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [edi + 0x6c]
test edx, edx
jle 0x46e439
mov eax, dword [edi + 0x68]
lea ecx, [edx + edx*4]
mov edx, 3
mov word [eax + ecx*4 - 0x12], dx
mov edx, dword [edi + 0x6c]
test esi, esi
jns 0x46e440
lea esi, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
je 0x46e44f
mov eax, 0x51e9d8
jmp 0x46e458
mov eax, dword [edi + 0x68]
lea ecx, [esi + esi*4]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
mov dword [eax + 8], edx
test ecx, ecx
je 0x46e47b
mov al, byte [ebx + 0x13]
cmp al, 8
jae 0x46e47b
movzx eax, al
mov dword [ebx + eax*4 + 0x94], ecx
inc byte [ebx + 0x13]
mov ecx, dword [esp + 0x64]
mov edx, dword [edi + 0x6c]
test ecx, ecx
jns 0x46e489
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
je 0x46e49b
mov eax, 0x51e9d8
mov dword [eax + 8], edx
jmp 0x46e4ae
mov eax, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x46e4ae
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x50]
test eax, eax
je 0x46e4bf
mov ecx, dword [ebx]
mov edx, eax
call fcn.004afa70
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00403d8c
mov esp, ebp
pop ebp
ret