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

Disassembly:
push 0xffffffffffffffff
push 0x52c458
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], ecx
mov al, byte [esp + 0x78]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x70], 1
mov byte [esp + 0x38], al
call fcn.004b23f0
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
lea ecx, [esp + 0x78]
mov byte [esp + 0x70], 2
call fcn.0048ab50
movsx ebp, ax
lea esi, [ebp + 2]
push esi
mov dword [esp + 0x1c], esi
call fcn.00514b36
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x78]
mov byte [ebx], 0x20
lea edi, [ebx + 1]
call fcn.0048ab70
mov ecx, ebp
mov esi, eax
mov eax, ecx
mov dword [esp + 0x10], 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 1
cmp eax, esi
mov dword [esp + 0x14], esi
jle 0x4af431
cmp byte [esi + ebx], 0x20
jne 0x4af420
sub esi, dword [esp + 0x10]
cmp esi, 2
jl 0x4af49e
push esi
call fcn.00514b36
mov ecx, esi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
lea ecx, [esi - 1]
mov edx, ecx
mov edi, ebp
lea esi, [ebx + eax + 1]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movsx eax, byte [ebp]
push eax
call fcn.00515b0c
add esp, 8
test eax, eax
je 0x4af3f1
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
movsx ecx, byte [ebp]
push ecx
call fcn.00515abc
add esp, 4
test eax, eax
je 0x4af394
push 0x2e
push ebp
call fcn.00515a00
add esp, 8
test eax, eax
jne 0x4af380
push ebp
mov byte [esp + 0x24], 3
call fcn.00514fba
add esp, 4
mov dword [esp + 0x24], eax
jmp 0x4af3e1
push ebp
mov byte [esp + 0x24], 0xc
call fcn.005151d0
fstp qword [esp + 0x34]
add esp, 4
jmp 0x4af3e1
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
movsx eax, byte [ebp]
add eax, 0xffffffbe
cmp eax, 0x20
ja case.0x4af3b9.71
xor edx, edx
mov dl, byte [eax + 0x4af9fc]
jmp dword [edx*4 + 0x4af9e4]
mov byte [esp + 0x20], 7
jmp 0x4af3e1
mov byte [esp + 0x20], 5
jmp 0x4af3e1
mov byte [esp + 0x20], 9
jmp 0x4af3e1
mov byte [esp + 0x20], 6
jmp 0x4af3e1
mov byte [esp + 0x20], 0xa
lea eax, [esp + 0x20]
lea ecx, [esp + 0x38]
push eax
call fcn.004b16c0
jmp 0x4af40d
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x20]
push ebp
push edx
call fcn.004ae080
test al, al
je 0x4af553
push ebp
call fcn.00514120
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x10], eax
mov esi, eax
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
mov dword [esp + 0x14], esi
jl 0x4af2dc
cmp dword [esp + 0x64], 1
je 0x4af5bf
push ebx
call fcn.00514120
mov eax, dword [esp + 0x68]
add esp, 4
test eax, eax
mov byte [esp + 0x70], 1
je 0x4af483
mov edi, 0x18
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x64]
add ecx, edi
dec eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x64], eax
je 0x4af472
cmp ecx, dword [esp + 0x40]
jne 0x4af47b
lea ecx, [esp + 0x38]
call fcn.004b20b0
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x4af457
lea ecx, [esp + 0x78]
mov byte [esp + 0x70], 0
call fcn.0048a720
mov dword [esp + 0x70], 0xffffffff
jmp 0x4af9c4
push ebx
call fcn.00514120
mov eax, dword [esp + 0x68]
add esp, 4
test eax, eax
mov byte [esp + 0x70], 1
je 0x4af483
mov edi, 0x18
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x64]
add ecx, edi
dec eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x64], eax
je 0x4af4d4
cmp ecx, dword [esp + 0x40]
jne 0x4af4dd
lea ecx, [esp + 0x38]
call fcn.004b20b0
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x4af4b9
jmp 0x4af483
push ebp
call fcn.00514120
push ebx
call fcn.00514120
mov eax, dword [esp + 0x6c]
add esp, 8
test eax, eax
mov byte [esp + 0x70], 1
je 0x4af538
mov edi, 0x18
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x64]
add ecx, edi
dec eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x64], eax
je 0x4af527
mov eax, dword [esp + 0x40]
mov edx, ecx
cmp edx, eax
jne 0x4af530
lea ecx, [esp + 0x38]
call fcn.004b20b0
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x4af508
lea ecx, [esp + 0x78]
mov byte [esp + 0x70], 0
call fcn.0048a720
mov dword [esp + 0x70], 0xffffffff
jmp 0x4af9c4
push ebp
call fcn.00514120
push ebx
call fcn.00514120
mov eax, dword [esp + 0x6c]
add esp, 8
test eax, eax
mov byte [esp + 0x70], 1
je 0x4af5a4
mov edi, 0x18
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x64]
add ecx, edi
dec eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x64], eax
je 0x4af593
mov eax, ecx
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jne 0x4af59c
lea ecx, [esp + 0x38]
call fcn.004b20b0
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x4af574
lea ecx, [esp + 0x78]
mov byte [esp + 0x70], 0
call fcn.0048a720
mov dword [esp + 0x70], 0xffffffff
jmp 0x4af9c4
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x58]
or ebp, 0xffffffff
mov dword [esp + 0x28], ecx
push ebp
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], edx
call fcn.004b24a0
mov esi, dword [esp + 0x28]
mov ecx, 6
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x20]
cmp al, 7
jae 0x4af6f0
and eax, 0xff
dec eax
cmp eax, 5
ja case.default.0x4af612
jmp dword [eax*4 + 0x4afa20]
push ebx
call fcn.00514120
mov eax, dword [esp + 0x68]
add esp, 4
test eax, eax
mov byte [esp + 0x70], 1
je 0x4af9b2
mov edi, 0x18
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x64]
add ecx, edi
dec eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x64], eax
je 0x4af65b
mov eax, ecx
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jne 0x4af6df
mov ecx, dword [esp + 0x48]
mov eax, ecx
add ecx, 4
mov dword [esp + 0x48], ecx
mov eax, dword [eax]
push eax
call fcn.00514120
mov eax, dword [esp + 0x68]
add esp, 4
test eax, eax
jne 0x4af6c3
lea ecx, [esp + 0x20]
call fcn.004b23f0
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x3c], eax
push ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], esi
call fcn.00514120
add esp, 4
jmp 0x4af6df
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
lea edx, [eax + 0xff0]
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x4af638
jmp 0x4af9b2
cmp al, 0xa
jbe 0x4af8e0
cmp al, 0xb
je case.0x4af612.1
cmp al, 0xc
jne 0x4af80d
push ebx
call fcn.00514120
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0xa4]
add esp, 4
mov ecx, 6
lea esi, [esp + 0x20]
mov byte [esp + 0x70], 1
test eax, eax
rep movsd dword es:[edi], dword [esi]
je 0x4af7e8
mov edi, 0x18
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x64]
add ecx, edi
dec eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x64], eax
je 0x4af758
mov eax, dword [esp + 0x40]
mov edx, ecx
cmp edx, eax
jne 0x4af7dc
mov ecx, dword [esp + 0x48]
mov eax, ecx
add ecx, 4
mov dword [esp + 0x48], ecx
mov eax, dword [eax]
push eax
call fcn.00514120
mov eax, dword [esp + 0x68]
add esp, 4
test eax, eax
jne 0x4af7c0
lea ecx, [esp + 0x20]
call fcn.004b23f0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x40], ecx
push eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], esi
call fcn.00514120
add esp, 4
jmp 0x4af7dc
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
lea edx, [eax + 0xff0]
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x4af735
lea ecx, [esp + 0x78]
mov byte [esp + 0x70], 0
call fcn.0048a720
lea ecx, [esp + 0x7c]
mov dword [esp + 0x70], ebp
call fcn.004975f0
mov eax, 1
jmp 0x4af9cf
push ebx
call fcn.00514120
mov eax, dword [esp + 0x68]
add esp, 4
test eax, eax
mov byte [esp + 0x70], 1
je 0x4af9b2
mov edi, 0x18
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x64]
add ecx, edi
dec eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x64], eax
je 0x4af84b
cmp ecx, dword [esp + 0x40]
jne 0x4af8cf
mov ecx, dword [esp + 0x48]
mov eax, ecx
add ecx, 4
mov dword [esp + 0x48], ecx
mov eax, dword [eax]
push eax
call fcn.00514120
mov eax, dword [esp + 0x68]
add esp, 4
test eax, eax
jne 0x4af8b3
lea ecx, [esp + 0x20]
call fcn.004b23f0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x44], edx
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x3c], eax
push edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], esi
call fcn.00514120
add esp, 4
jmp 0x4af8cf
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
lea edx, [eax + 0xff0]
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x4af82c
jmp 0x4af9b2
push ebx
call fcn.00514120
mov eax, dword [esp + 0x68]
add esp, 4
test eax, eax
mov byte [esp + 0x70], 1
je 0x4af9b2
mov edi, 0x18
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x64]
add ecx, edi
dec eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x64], eax
je 0x4af922
mov eax, ecx
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jne 0x4af9a6
mov ecx, dword [esp + 0x48]
mov eax, ecx
add ecx, 4
mov dword [esp + 0x48], ecx
mov eax, dword [eax]
push eax
call fcn.00514120
mov eax, dword [esp + 0x68]
add esp, 4
test eax, eax
jne 0x4af98a
lea ecx, [esp + 0x20]
call fcn.004b23f0
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x3c], eax
push ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], esi
call fcn.00514120
add esp, 4
jmp 0x4af9a6
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
lea edx, [eax + 0xff0]
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x4af8ff
lea ecx, [esp + 0x78]
mov byte [esp + 0x70], 0
call fcn.0048a720
mov dword [esp + 0x70], ebp
lea ecx, [esp + 0x7c]
call fcn.004975f0
xor eax, eax
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 0x2c