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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov ebx, ecx
mov dword [esp + 0xc], edx
push esi
push edi
mov dword [esp + 0x24], ebx
mov edi, dword [ebx]
mov dword [esp + 0x2c], edi
mov esi, dword [edi + 8]
test esi, esi
jne 0x4af93d
cmp dword [edi + 0x78], esi
jne 0x4af934
mov eax, dword [edi]
test byte [eax + 0x50], 8
jne 0x4af934
mov byte [edi + 0x17], 1
mov ecx, edi
call fcn.00436f50
mov esi, eax
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0xc]
mov cl, byte [edi + 0x13]
mov dword [esp + 0x28], eax
test cl, cl
jne 0x4af95b
mov ebx, dword [edi + 0x2c]
inc ebx
mov edx, ebx
lea eax, [edx + 1]
mov edx, eax
jmp 0x4af986
mov edx, dword [edi + 0x2c]
sub cl, 1
movzx eax, cl
mov byte [edi + 0x13], cl
mov ebx, dword [edi + eax*4 + 0xa0]
jne 0x4af977
lea eax, [edx + 1]
mov edx, eax
jmp 0x4af986
dec cl
movzx eax, cl
mov byte [edi + 0x13], cl
mov eax, dword [edi + eax*4 + 0xa0]
dec dword [edi + 0x38]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], eax
lea eax, [edx + 1]
mov edx, dword [ebp + 8]
mov dword [esp + 0x1c], eax
mov dword [edi + 0x2c], eax
mov eax, 0x6a
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x38]
push ebx
mov dword [esp + 0x24], eax
call fcn.004ad920
mov edx, dword [ebp + 0x10]
add esp, 4
mov ecx, dword [esp + 0x24]
push dword [esp + 0x10]
call fcn.004ad920
mov eax, dword [esp + 0x2c]
add esp, 4
mov cl, byte [eax + 0x10]
test cl, 1
je 0x4afa05
mov edx, dword [esp + 0x14]
cmp edx, 0x36
je 0x4af9f4
xor eax, eax
cmp edx, 0x39
setne al
lea eax, [eax*2 + 0x37]
mov dword [esp + 0x14], eax
jmp 0x4af9fc
mov dword [esp + 0x14], 0x38
mov eax, 0x6b
mov dword [esp + 0x18], eax
test cl, 2
je 0x4afc26
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x24], ecx
cmp dword [esi + 0x70], ecx
jg 0x4afa34
push 0
push 0
push ebx
mov edx, 0x33
mov ecx, esi
call fcn.00437140
add esp, 0xc
mov dword [esp + 0x24], eax
jmp 0x4afa63
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x33
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 edx, dword [esp + 0x14]
sub edx, 0x36
je 0x4afaf3
sub edx, 1
je 0x4afabc
sub edx, 2
jne 0x4afb47
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4afa9f
push edx
push dword [ebp + 0x14]
mov ecx, esi
push edx
mov edx, 9
call fcn.00437140
add esp, 0xc
jmp 0x4afb47
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 9
mov dword [eax + ecx*4 + 4], 0
jmp 0x4afb30
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4afade
push 0
push dword [ebp + 0x14]
mov edx, 0x32
mov ecx, esi
push dword [esp + 0x18]
call fcn.00437140
add esp, 0xc
jmp 0x4afb47
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x32
jmp 0x4afb28
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4afb15
push 0
push dword [ebp + 0x14]
mov edx, 0x33
mov ecx, esi
push dword [esp + 0x18]
call fcn.00437140
add esp, 0xc
jmp 0x4afb47
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x33
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 8], edx
mov ecx, dword [esi + 0x6c]
mov edx, dword [esp + 0x20]
cmp dword [esi + 0x70], ecx
jg 0x4afb69
push 0
push edx
push 0
mov edx, 9
mov ecx, esi
call fcn.00437140
add esp, 0xc
jmp 0x4afb98
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 9
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 eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x4afbaa
mov eax, 0x5160d8
jmp 0x4afbb7
mov eax, dword [esp + 0x24]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x14]
cmp eax, 0x36
je 0x4afbcb
cmp eax, 0x39
mov eax, dword [ebp + 0x14]
jne 0x4afbcf
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x24], eax
cmp dword [esi + 0x70], ecx
jg 0x4afbf3
push 0
push eax
push dword [esp + 0x18]
mov edx, 0x32
mov ecx, esi
call fcn.00437140
add esp, 0xc
jmp 0x4afc26
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x32
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 + 0x6c]
cmp dword [esi + 0x70], edx
jg 0x4afc49
push 0
push dword [esp + 0x20]
mov edx, 0x75
mov ecx, esi
push 0
call fcn.00437140
add esp, 0xc
mov edx, eax
jmp 0x4afc80
mov edi, dword [esp + 0x1c]
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x2c]
mov dword [eax + ecx*4], 0x75
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push 0xffffffffffffffff
push 0x4ff790
mov ecx, esi
call fcn.00437de0
mov ecx, dword [esi + 0x6c]
add esp, 8
mov dword [esp + 0x24], ecx
cmp dword [esi + 0x70], ecx
jg 0x4afcb9
push ebx
push 0
push dword [esp + 0x24]
mov edx, 0x39
mov ecx, esi
call fcn.00437140
add esp, 0xc
mov dword [esp + 0x24], eax
jmp 0x4afce8
mov edx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x39
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 edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp edx, 0x39
jne 0x4afcfc
cmp eax, 0x6a
je 0x4afd06
jmp 0x4afd5c
cmp edx, 0x37
jne 0x4afd5c
cmp eax, 0x6b
jne 0x4afd5c
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4afd22
push ebx
push dword [ebp + 0x14]
mov ecx, esi
push dword [esp + 0x18]
call fcn.00437140
add esp, 0xc
jmp 0x4afd58
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov byte [eax + ecx*4], dl
xor edx, edx
mov word [eax + ecx*4 + 2], dx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4afd77
push ebx
push ebx
push dword [ebp + 0xc]
mov edx, eax
mov ecx, esi
call fcn.00437140
add esp, 0xc
jmp 0x4afdac
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x18]
mov byte [ecx + 1], 0
mov byte [ecx], al
xor eax, eax
mov word [ecx + 2], ax
mov eax, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x4afdbe
mov eax, 0x5160d8
jmp 0x4afdcb
mov eax, dword [esp + 0x24]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [esi + 0x6c]
mov edx, dword [esp + 0x14]
cmp dword [esi + 0x70], ecx
jg 0x4afdee
push ebx
push dword [ebp + 0x14]
mov ecx, esi
push dword [esp + 0x18]
call fcn.00437140
add esp, 0xc
jmp 0x4afe24
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov byte [eax + ecx*4], dl
xor edx, edx
mov word [eax + ecx*4 + 2], dx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov eax, dword [esp + 0x28]
mov ecx, edi
mov edx, dword [eax + 8]
call fcn.0044d8d0
mov edx, eax
test edx, edx
jne 0x4afe3d
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, dword [esi]
cmp byte [ecx + 0x57], 0
je 0x4afe55
push edx
mov edx, 0xfffffffe
call fcn.00437b50
add esp, 4
jmp 0x4afe67
mov eax, dword [esi + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov byte [eax + ecx*4 - 0x13], 0xfe
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x4afe7e
lea ecx, [eax + eax*4]
mov edx, 0x80
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x20]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4afe9c
push edx
mov edx, esi
call fcn.004376f0
add esp, 4
jmp 0x4afea5
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
test ebx, ebx
je 0x4afebd
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x4afebd
movzx eax, al
mov dword [edi + eax*4 + 0xa0], ebx
inc byte [edi + 0x13]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4afed9
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x4afed9
movzx eax, al
mov dword [edi + eax*4 + 0xa0], ecx
inc byte [edi + 0x13]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret