Function at 0x4afff0
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 + 0x30], 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 + 0x44], ecx
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea eax, [ecx - 1]
test ecx, eax
jne 0x4b004b
mov edx, dword [ebx + 0x78]
lea eax, [ecx*8 + 4]
mov ecx, dword [ebx]
push 0
push eax
call fcn.0045a1b0
mov ecx, dword [esp + 0x4c]
add esp, 8
mov edx, dword [ebp + 8]
mov dword [ebx + 0x78], eax
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x4b0059
mov dword [eax + ecx*4], 0xffffffff
or eax, 0xffffffff
mov dword [esp + 0x2c], 0
sub eax, ecx
mov dword [esp + 0x34], eax
mov eax, dword [edx]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x10]
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 0x4b011b
mov eax, dword [esi + 0x18]
mov ebx, dword [ecx + 0xc]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x4b00b2
push 0
push edx
push ebx
mov edx, 0xe
mov ecx, esi
call fcn.004791e0
add esp, 0xc
jmp 0x4b00e1
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.004793e0
mov edx, dword [esi + 0x18]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x4b010a
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 0x4b017e
cmp ebx, 0xd
je 0x4b017e
mov al, byte [edi + 0x13]
test al, al
jne 0x4b013b
inc dword [edi + 0x4c]
mov ecx, dword [edi + 0x4c]
jmp 0x4b0147
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 0x4b0165
inc dword [edi + 0x4c]
mov ebx, dword [edi + 0x4c]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x24], 1
jmp 0x4b0190
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 0x4b0190
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 + 0x28], ebx
mov eax, dword [eax]
sub eax, dword [ecx + 4]
test byte [ecx + 0x1c], 1
mov dword [esp + 0x40], eax
je 0x4b02d1
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 0x4b01d1
mov ecx, edi
call fcn.0048f060
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x24]
mov edx, 0x3c
inc ecx
add ecx, dword [esp + 0x40]
push ecx
push dword [esp + 0x3c]
mov ecx, esi
push dword [esp + 0x28]
call fcn.00479220
add esp, 0xc
cmp dword [esp + 0x2c], 0
je 0x4b022c
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
dec ecx
mov dword [eax + 0x60], ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi + 0x20]
test ecx, ecx
jns 0x4b0211
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x4b0220
mov eax, 0x5a2a64
jmp 0x4b0229
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 edx, dword [esi + 0x20]
cmp dword [eax + 0x58], edx
jg 0x4b0254
push 0
push dword [esp + 0x20]
mov edx, 0x6a
mov ecx, esi
push dword [esp + 0x1c]
call fcn.004791e0
add esp, 0xc
mov edx, eax
jmp 0x4b028f
mov ebx, dword [esp + 0x14]
lea eax, [edx + 1]
mov dword [esi + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x28]
mov word [eax + ecx*4], 0x6a
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push dword [esp + 0x34]
lea eax, [edx + 1]
mov ecx, esi
mov edx, dword [esp + 0x40]
mov dword [esp + 0x30], eax
mov edx, dword [edx + 0x10]
call fcn.004af080
add esp, 4
mov edx, 0x64
mov ecx, esi
push dword [esp + 0x20]
push dword [esp + 0x3c]
push dword [esp + 0x1c]
call fcn.00479220
mov edx, dword [esp + 0x2c]
add esp, 0xc
xor eax, eax
jmp 0x4b035d
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
cmp dword [eax + 0x58], edx
jg 0x4b02f9
push 0
push dword [esp + 0x20]
mov edx, 0x6b
mov ecx, esi
push dword [esp + 0x1c]
call fcn.004791e0
add esp, 0xc
mov edx, eax
jmp 0x4b0334
mov edi, dword [esp + 0x14]
lea eax, [edx + 1]
mov dword [esi + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x30]
mov word [eax + ecx*4], 0x6b
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push dword [esp + 0x34]
lea eax, [edx + 1]
mov ecx, esi
mov edx, dword [esp + 0x40]
mov dword [esp + 0x30], eax
mov edx, dword [edx + 0x10]
call fcn.004af080
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x20], edx
mov eax, 1
cmp dword [esp + 0x24], 0
jle 0x4b03ce
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x28]
add ebx, eax
mov edi, edi
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x4b0393
push edi
push ebx
push edx
mov edx, 0x2f
mov ecx, esi
call fcn.004791e0
mov edx, dword [esp + 0x2c]
add esp, 0xc
jmp 0x4b03be
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x2f
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
dec dword [esp + 0x24]
jne 0x4b0370
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
mov eax, ecx
sub eax, 0xa
je 0x4b0685
dec eax
je 0x4b057e
dec eax
je 0x4b04a9
mov eax, dword [ebp + 0x10]
cmp ecx, 9
mov ecx, dword [esi + 0x20]
jne 0x4b0462
mov edx, dword [eax + 8]
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x4b0418
push 0
push dword [ebp + 0xc]
mov ecx, esi
push edx
mov edx, 0x21
call fcn.004791e0
add esp, 0xc
jmp 0x4b044a
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], 0x21
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.00490680
add esp, 4
jmp 0x4b0697
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x4b0486
push 0
push 0
push edx
mov edx, 0x12
mov ecx, esi
call fcn.004791e0
add esp, 0xc
jmp 0x4b0697
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x12
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
jmp 0x4b066e
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x4b04d3
push 0
push dword [esp + 0x14]
mov edx, 0x4a
mov ecx, esi
push dword [esp + 0x20]
call fcn.004791e0
mov edx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x4b050a
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], 0x4a
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 0x4b052c
push edx
push ebx
push dword [esp + 0x20]
mov edx, 0x4b
mov ecx, esi
call fcn.004791e0
add esp, 0xc
jmp 0x4b055f
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 + 0x30]
mov word [eax + ecx*4], 0x4b
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 0x4b0697
mov eax, dword [esi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov byte [eax + ecx*4 - 0x11], 8
jmp 0x4b0697
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
cmp dword [eax + 0x58], edx
jg 0x4b05a3
push dword [esp + 0x10]
mov edx, 0x31
mov ecx, esi
push 1
push ebx
call fcn.004791e0
add esp, 0xc
mov edx, eax
jmp 0x4b05da
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 + 0x30]
mov word [eax + ecx*4], 0x31
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 0x4b05f6
mov eax, dword [ebp + 0x10]
mov edx, 1
inc eax
push eax
call fcn.00479ca0
add esp, 4
jmp 0x4b0618
test edx, edx
jns 0x4b05fe
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.00479ec0
add esp, 8
push 1
mov edx, ebx
mov ecx, edi
call fcn.00490680
mov eax, dword [esi + 0x18]
add esp, 4
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x4b064c
push 0
push dword [esp + 0x14]
mov edx, 0x6e
mov ecx, esi
push dword [esp + 0x20]
call fcn.004791e0
add esp, 0xc
jmp 0x4b0697
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], 0x6e
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 0x4b0697
push 1
push dword [esp + 0x1c]
mov edx, ebx
mov ecx, edi
call fcn.00490c40
add esp, 8
cmp dword [esp + 0x10], 0
je 0x4b06fe
test ebx, ebx
je 0x4b06ce
mov dl, byte [edi + 0x13]
cmp dl, 8
jae 0x4b06ce
xor ecx, ecx
lea eax, [edi + 0x7c]
nop
cmp dword [eax + 0xc], ebx
je 0x4b06ca
inc ecx
add eax, 0x14
cmp ecx, 0xa
jl 0x4b06b0
movzx eax, dl
mov dword [edi + eax*4 + 0x1c], ebx
inc byte [edi + 0x13]
jmp 0x4b06ce
mov byte [eax + 6], 1
mov dl, byte [edi + 0x13]
cmp dl, 8
jae 0x4b06fe
mov ebx, dword [esp + 0x10]
lea eax, [edi + 0x7c]
xor ecx, ecx
nop
cmp dword [eax + 0xc], ebx
je 0x4b06fa
inc ecx
add eax, 0x14
cmp ecx, 0xa
jl 0x4b06e0
movzx eax, dl
mov dword [edi + eax*4 + 0x1c], ebx
inc byte [edi + 0x13]
jmp 0x4b06fe
mov byte [eax + 6], 1
mov edx, dword [esi + 0x18]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x4b071a
mov eax, dword [esp + 0x34]
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 0x4b0765
cmp dword [eax + 0x58], ecx
jg 0x4b0751
mov edx, dword [esp + 0x2c]
mov ecx, esi
push 0
push edx
push dword [esp + 0x1c]
mov edx, 3
call fcn.004791e0
add esp, 0xc
jmp 0x4b07bd
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 0x4b0798
cmp dword [eax + 0x58], ecx
jg 0x4b0786
mov edx, dword [esp + 0x2c]
mov ecx, esi
push 0
push edx
push dword [esp + 0x1c]
mov edx, 7
call fcn.004791e0
add esp, 0xc
jmp 0x4b07bd
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 + 0x2c]
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 0x4b0818
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x4b07e5
push 0
push 0
push edx
mov edx, 0xf
mov ecx, esi
call fcn.004791e0
add esp, 0xc
jmp 0x4b0818
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0xf
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 0x4b0834
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