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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x3c], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x34], edi
mov esi, dword [edi + 8]
mov eax, dword [edx + 0x18]
mov dword [esp + 0x1c], eax
mov ebx, dword [esi + 0x18]
mov ecx, dword [ebx + 0x74]
mov dword [esp + 0x28], ecx
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea eax, [ecx - 1]
test ecx, eax
jne 0x46ddcb
mov edx, dword [ebx + 0x78]
lea eax, [ecx*8 + 4]
mov ecx, dword [ebx]
push 0
push eax
call fcn.00418a40
mov ecx, dword [esp + 0x30]
add esp, 8
mov edx, dword [ebp + 8]
mov dword [ebx + 0x78], eax
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x46ddd9
mov dword [eax + ecx*4], 0xffffffff
mov eax, dword [edx]
not ecx
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], 0
mov ecx, dword [eax + 4]
movzx ebx, byte [eax]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x44], ebx
mov edx, dword [ecx + 0x10]
test edx, edx
je 0x46de98
mov eax, dword [esi + 0x18]
mov ebx, dword [ecx + 0xc]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x46de2f
push 0
push edx
push ebx
mov edx, 0xe
mov ecx, esi
call fcn.004376e0
add esp, 0xc
jmp 0x46de5e
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0xe
mov byte [eax + ecx*4 + 3], 0
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 [esp + 0x1c]
mov ecx, esi
call fcn.004378e0
mov edx, dword [esi + 0x18]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x46de87
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x10]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x20]
mov dword [ecx], eax
mov eax, dword [esi + 0x20]
mov ebx, dword [esp + 0x44]
dec eax
mov ecx, dword [ebp + 8]
mov dword [edx + 0x60], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ecx + 8]
mov dword [esp + 0x14], edx
cmp ebx, 9
je 0x46defb
cmp ebx, 0xd
je 0x46defb
mov al, byte [edi + 0x13]
test al, al
jne 0x46deb8
inc dword [edi + 0x4c]
mov ecx, dword [edi + 0x4c]
jmp 0x46dec4
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov ecx, dword [edi + eax*4 + 0x1c]
mov al, byte [edi + 0x13]
mov dword [esp + 0x10], ecx
test al, al
jne 0x46dee2
inc dword [edi + 0x4c]
mov ebx, dword [edi + 0x4c]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x24], 1
jmp 0x46df0d
mov ecx, dword [ebp + 8]
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov dword [esp + 0x24], 1
mov ebx, dword [edi + eax*4 + 0x1c]
jmp 0x46df0d
mov ebx, dword [eax + 8]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x2c], ebx
mov eax, dword [eax]
sub eax, dword [ecx + 4]
test byte [ecx + 0x1c], 1
mov dword [esp + 0x40], eax
je 0x46e04c
inc dword [edi + 0x4c]
mov eax, dword [edi + 0x4c]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x48]
mov dword [esp + 0x20], eax
inc eax
cmp dword [ecx + 0x10], 0
mov dword [edi + 0x48], eax
je 0x46df4e
mov ecx, edi
call fcn.0044d610
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
mov edx, 0x6c
mov ecx, dword [esp + 0x24]
inc eax
add ecx, eax
push ecx
push dword [esp + 0x3c]
mov ecx, esi
push dword [esp + 0x28]
call fcn.00437720
add esp, 0xc
cmp dword [esp + 0x30], 0
je 0x46dfab
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
dec ecx
mov dword [eax + 0x60], ecx
mov ecx, dword [esp + 0x30]
mov edx, dword [esi + 0x20]
test ecx, ecx
jns 0x46df90
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x46df9f
mov eax, 0x520b44
jmp 0x46dfa8
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x30], ecx
cmp dword [eax + 0x58], ecx
jg 0x46dfda
push 0
push dword [esp + 0x20]
mov ecx, esi
push edx
mov edx, 0x2a
call fcn.004376e0
add esp, 0xc
mov dword [esp + 0x30], eax
jmp 0x46e00d
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x1c]
mov word [eax + ecx*4], 0x2a
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
mov edx, dword [esp + 0x3c]
mov ecx, esi
push dword [esp + 0x28]
mov edx, dword [edx + 0x10]
call fcn.0046cde0
add esp, 4
mov edx, 0x76
mov ecx, esi
push dword [esp + 0x20]
push dword [esp + 0x3c]
push dword [esp + 0x1c]
call fcn.00437720
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov edx, dword [esp + 0x20]
xor ecx, ecx
jmp 0x46e0d0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x38], ecx
cmp dword [eax + 0x58], ecx
jg 0x46e077
push 0
push dword [esp + 0x20]
mov ecx, esi
push edx
mov edx, 0x35
call fcn.004376e0
add esp, 0xc
mov dword [esp + 0x38], eax
jmp 0x46e0aa
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x1c]
mov word [eax + ecx*4], 0x35
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
mov edx, dword [esp + 0x3c]
mov ecx, esi
push dword [esp + 0x28]
mov edx, dword [edx + 0x10]
call fcn.0046cde0
mov edx, dword [esp + 0x18]
add esp, 4
mov eax, dword [esp + 0x38]
mov ecx, 1
mov dword [esp + 0x20], edx
inc eax
cmp dword [esp + 0x24], 0
mov dword [esp + 0x30], eax
jle 0x46e145
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x2c]
add ebx, ecx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x46e109
push edi
push ebx
push edx
mov edx, 0x5e
mov ecx, esi
call fcn.004376e0
mov edx, dword [esp + 0x2c]
add esp, 0xc
jmp 0x46e134
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x5e
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], edi
mov dword [eax + ecx*4 + 0x10], 0
inc edi
inc ebx
sub dword [esp + 0x24], 1
jne 0x46e0e6
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x44]
mov eax, ecx
sub eax, 0xa
je 0x46e400
sub eax, 1
je 0x46e2f9
sub eax, 1
je 0x46e224
mov eax, dword [ebp + 0x10]
cmp ecx, 9
mov ecx, dword [esi + 0x20]
jne 0x46e1dd
mov edx, dword [eax + 8]
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x46e193
push 0
push dword [ebp + 0xc]
mov ecx, esi
push edx
mov edx, 0x55
call fcn.004376e0
add esp, 0xc
jmp 0x46e1c5
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp + 0xc]
mov word [eax + ecx*4], 0x55
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
mov eax, dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
mov edx, dword [eax + 8]
call fcn.0044ebb0
add esp, 4
jmp 0x46e412
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x46e201
push 0
push 0
push edx
mov edx, 0x10
mov ecx, esi
call fcn.004376e0
add esp, 0xc
jmp 0x46e412
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x10
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
jmp 0x46e3e9
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x46e24e
push 0
push dword [esp + 0x14]
mov edx, 0x70
mov ecx, esi
push dword [esp + 0x20]
call fcn.004376e0
mov edx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x46e285
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x10]
mov word [eax + ecx*4], 0x70
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
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x46e2a7
push edx
push ebx
push dword [esp + 0x20]
mov edx, 0x71
mov ecx, esi
call fcn.004376e0
add esp, 0xc
jmp 0x46e2da
mov edi, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x34]
mov word [eax + ecx*4], 0x71
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
jne 0x46e412
mov eax, dword [esi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov byte [eax + ecx*4 - 0x11], 8
jmp 0x46e412
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
cmp dword [eax + 0x58], edx
jg 0x46e31e
push dword [esp + 0x10]
mov edx, 0x60
mov ecx, esi
push 1
push ebx
call fcn.004376e0
add esp, 0xc
mov edx, eax
jmp 0x46e355
mov edi, dword [esp + 0x10]
lea eax, [edx + 1]
mov dword [esi + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [esp + 0x34]
mov word [eax + ecx*4], 0x60
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi]
cmp byte [ecx + 0x45], 0
je 0x46e371
mov eax, dword [ebp + 0x10]
mov edx, 1
inc eax
push eax
call fcn.004381b0
add esp, 4
jmp 0x46e393
test edx, edx
jns 0x46e379
mov edx, dword [esi + 0x20]
dec edx
mov eax, dword [ebp + 0x10]
lea ecx, [edx + edx*4]
inc eax
push 1
push eax
mov eax, dword [esi + 4]
lea edx, [eax + ecx*4]
mov ecx, esi
call fcn.004383e0
add esp, 8
push 1
mov edx, ebx
mov ecx, edi
call fcn.0044ebb0
mov eax, dword [esi + 0x18]
add esp, 4
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x46e3c7
push 0
push dword [esp + 0x14]
mov edx, 0x7c
mov ecx, esi
push dword [esp + 0x20]
call fcn.004376e0
add esp, 0xc
jmp 0x46e412
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x10]
mov word [eax + ecx*4], 0x7c
mov dword [eax + ecx*4 + 8], edx
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x46e412
push 1
push dword [esp + 0x1c]
mov edx, ebx
mov ecx, edi
call fcn.0044f230
add esp, 8
cmp dword [esp + 0x10], 0
je 0x46e47e
test ebx, ebx
je 0x46e44e
mov dl, byte [edi + 0x13]
cmp dl, 8
jae 0x46e44e
xor ecx, ecx
lea eax, [edi + 0x7c]
nop word [eax + eax]
cmp dword [eax + 0xc], ebx
je 0x46e44a
inc ecx
add eax, 0x14
cmp ecx, 0xa
jl 0x46e430
movzx eax, dl
mov dword [edi + eax*4 + 0x1c], ebx
inc byte [edi + 0x13]
jmp 0x46e44e
mov byte [eax + 6], 1
mov dl, byte [edi + 0x13]
cmp dl, 8
jae 0x46e47e
mov ebx, dword [esp + 0x10]
lea eax, [edi + 0x7c]
xor ecx, ecx
nop
cmp dword [eax + 0xc], ebx
je 0x46e47a
inc ecx
add eax, 0x14
cmp ecx, 0xa
jl 0x46e460
movzx eax, dl
mov dword [edi + eax*4 + 0x1c], ebx
inc byte [edi + 0x13]
jmp 0x46e47e
mov byte [eax + 6], 1
mov edx, dword [esi + 0x18]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x46e49a
mov eax, dword [esp + 0x28]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x20]
mov dword [ecx], eax
mov eax, dword [esi + 0x20]
mov ebx, dword [ebp + 8]
dec eax
mov dword [edx + 0x60], eax
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
test byte [ebx + 0x1c], 1
je 0x46e4e5
cmp dword [eax + 0x58], ecx
jg 0x46e4d1
mov edx, dword [esp + 0x30]
mov ecx, esi
push 0
push edx
push dword [esp + 0x1c]
mov edx, 3
call fcn.004376e0
add esp, 0xc
jmp 0x46e53d
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 3
jmp 0x46e518
cmp dword [eax + 0x58], ecx
jg 0x46e506
mov edx, dword [esp + 0x30]
mov ecx, esi
push 0
push edx
push dword [esp + 0x1c]
mov edx, 7
call fcn.004376e0
add esp, 0xc
jmp 0x46e53d
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 7
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 8], edx
mov byte [eax + ecx*4 + 3], 0
mov edx, dword [ebx + 0xc]
test edx, edx
je 0x46e598
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x46e565
push 0
push 0
push edx
mov edx, 0x46
mov ecx, esi
call fcn.004376e0
add esp, 0xc
jmp 0x46e598
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x46
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
mov edx, dword [esi + 0x18]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x46e5b4
mov eax, dword [esp + 0x1c]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x20]
mov dword [ecx], eax
mov eax, dword [esi + 0x20]
pop edi
dec eax
pop esi
mov dword [edx + 0x60], eax
pop ebx
mov esp, ebp
pop ebp
ret