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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push edi
push edi
push edi
push 0x11
push eax
mov byte [esp + 0x23], 0
mov dword [esp + 0x30], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x4c], eax
call fcn.004cc1f0
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x24], edi
lea edi, [eax + eax*2]
shl edi, 4
mov dword [esp + 0x44], ecx
mov ecx, dword [edx + 0x40]
add edi, ebx
xor edx, edx
xor eax, eax
add esp, 0x14
mov dword [esp + 0x34], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
cmp ebx, edi
jae 0x5177a4
lea esp, [esp]
mov edx, dword [ecx]
or edx, dword [ecx + 4]
mov eax, dword [ebx]
mov dword [esp + 0x2c], eax
jne 0x517638
test byte [ebx + 0xa], 2
jne 0x517638
test byte [eax + 4], 1
jne 0x517638
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi + 0x2c]
push ecx
lea edx, [esp + 0x60]
push edx
mov byte [esp + 0x78], 3
mov dword [esp + 0x68], 0x4e1a00
mov dword [esp + 0x6c], 0x4e19a0
mov dword [esp + 0x7c], eax
call fcn.004dd300
add esp, 8
cmp byte [esp + 0x70], 0
je 0x517638
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push 0
push 0
push ecx
push eax
call fcn.004e0c80
mov edx, dword [esp + 0x2c]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
push edx
call fcn.004e0750
add esp, 0x14
mov dword [esp + 0x1c], eax
mov edx, dword [ebx + 0x14]
cmp edx, dword [esi + 0x2c]
jne 0x51778a
movzx eax, word [ebx + 0xc]
test al, 0x82
je 0x51778a
mov ecx, dword [ebp + 0x10]
test byte [ecx + 0x24], 8
je 0x517669
mov edx, dword [ebx]
test byte [edx + 4], 1
jne 0x517669
test al, al
js 0x51778a
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
and eax, dword [ebp + 0x14]
and ecx, dword [ebp + 0x18]
or eax, ecx
jne 0x51778a
mov eax, dword [ebx + 0x1c]
test eax, eax
jl 0x51778a
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x10]
mov ecx, dword [edx + 4]
mov esi, dword [ebx]
shl eax, 4
mov dl, byte [ecx + eax + 0xd]
mov byte [esp + 0xe], dl
call fcn.004dfab0
movsx eax, al
sub eax, 0x41
je 0x5176ce
sub eax, 1
je 0x5176bc
xor eax, eax
cmp byte [esp + 0xe], 0x43
setge al
jmp 0x5176c6
xor eax, eax
cmp byte [esp + 0xe], 0x42
sete al
test eax, eax
je 0x51778a
mov esi, dword [ebx + 0x1c]
cmp esi, 0x40
jl 0x5176e8
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], Ordinal_1
jmp 0x5176fe
mov eax, 1
xor edx, edx
mov ecx, esi
call fcn.0058de50
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
cmp byte [esp + 0xf], 0
jne 0x51772d
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
shl esi, 4
mov edx, dword [esi + ecx]
push edx
push eax
push str.automatic_index_on__s__s_
push 0x11c
call fcn.004ad9d0
add esp, 0x10
mov byte [esp + 0xf], 1
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
and eax, dword [esp + 0x48]
and ecx, dword [esp + 0x4c]
or eax, ecx
jne 0x51778a
mov ecx, dword [ebp + 8]
mov esi, dword [esp + 0x10]
mov edx, dword [ecx]
mov edi, dword [esp + 0x18]
lea eax, [esi + 1]
push edx
mov dword [esp + 0x30], eax
call fcn.005185c0
add esp, 4
test eax, eax
jne 0x5180c6
mov edx, dword [esp + 0x2c]
mov eax, edi
mov ecx, dword [eax + 0x30]
mov eax, dword [esp + 0x20]
or dword [esp + 0x48], eax
mov edi, dword [esp + 0x34]
mov dword [ecx + esi*4], ebx
mov ecx, dword [esp + 0x24]
or dword [esp + 0x4c], ecx
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x18]
mov esi, dword [ebp + 0x10]
add ebx, 0x30
cmp ebx, edi
jb 0x5175c0
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x10]
mov word [ecx + 0x28], di
mov word [ecx + 0x18], di
mov dword [ecx + 0x24], 0x4241
mov ecx, dword [esi + 0x38]
mov esi, dword [esi + 0x3c]
not eax
or eax, 0x80000000
not edx
and eax, esi
mov edi, edx
mov edx, dword [esp + 0x30]
and edi, ecx
mov dword [esp + 0x54], eax
movzx eax, word [edx + 0x2a]
mov ecx, 0x3f
cmp cx, ax
mov dword [esp + 0x50], edi
mov dword [esp + 0x2c], eax
jge 0x5177f0
mov dword [esp + 0x20], ecx
jmp 0x5177f7
movsx edx, ax
mov dword [esp + 0x20], edx
xor ebx, ebx
cmp dword [esp + 0x20], ebx
jle 0x517823
nop
mov eax, 1
xor edx, edx
mov ecx, ebx
call fcn.0058de50
and edx, dword [esp + 0x54]
and eax, edi
or eax, edx
je 0x51781c
inc dword [esp + 0x10]
inc ebx
cmp ebx, dword [esp + 0x20]
jl 0x517800
and esi, 0x80000000
xor eax, eax
or eax, esi
je 0x517840
movsx eax, word [esp + 0x2c]
mov ecx, dword [esp + 0x10]
lea edx, [ecx + eax - 0x3f]
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ebp + 8]
inc ecx
push ecx
mov ecx, dword [eax]
xor edx, edx
call fcn.004ef770
mov ebx, eax
add esp, 8
mov dword [esp + 0x2c], ebx
test ebx, ebx
je 0x5180c6
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x20], ebx
xor esi, esi
mov dword [ebx], str.auto_index
mov dword [ebx + 0xc], edx
mov edi, dword [eax + 0x14]
mov dword [esp + 0x14], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
cmp edi, dword [esp + 0x34]
jae 0x517a3c
lea ebx, [ebx]
mov ecx, dword [edi + 0x14]
mov edx, dword [ebp + 0x10]
cmp ecx, dword [edx + 0x2c]
jne 0x517a29
movzx eax, word [edi + 0xc]
test al, 0x82
je 0x517a29
mov ecx, edx
test byte [ecx + 0x24], 8
je 0x5178d3
mov edx, dword [edi]
test byte [edx + 4], 1
jne 0x5178d3
test al, al
js 0x517a29
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
and eax, dword [ebp + 0x14]
and ecx, dword [ebp + 0x18]
or eax, ecx
jne 0x517a29
mov eax, dword [edi + 0x1c]
test eax, eax
jl 0x517a29
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x10]
mov ecx, dword [edx + 4]
mov esi, dword [edi]
shl eax, 4
mov dl, byte [ecx + eax + 0xd]
mov eax, dword [esi + 0xc]
mov byte [esp + 0xf], dl
call fcn.004df6e0
mov bl, al
mov eax, dword [esi + 0x10]
test eax, eax
je 0x517933
call fcn.004df6e0
test al, al
je 0x517946
test bl, bl
je 0x51794a
cmp al, 0x43
jge 0x51792f
cmp bl, 0x43
jl 0x517952
mov bl, 0x43
jmp 0x517954
test dword [esi + 4], 0x800
je 0x51794e
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
mov eax, dword [ecx + 4]
jmp 0x517919
test bl, bl
je 0x517952
add bl, al
jmp 0x517954
test bl, bl
jne 0x517954
mov bl, 0x41
movsx eax, bl
sub eax, 0x41
je 0x51797f
sub eax, 1
je 0x51796d
xor eax, eax
cmp byte [esp + 0xf], 0x43
setge al
jmp 0x517977
xor eax, eax
cmp byte [esp + 0xf], 0x42
sete al
test eax, eax
je 0x517a29
mov ecx, dword [edi + 0x1c]
cmp ecx, 0x40
jl 0x517990
xor eax, eax
mov edx, Ordinal_1
jmp 0x51799c
mov eax, 1
xor edx, edx
call fcn.0058de50
mov ecx, eax
and ecx, dword [esp + 0x48]
mov esi, edx
and esi, dword [esp + 0x4c]
or ecx, esi
jne 0x517a29
or dword [esp + 0x4c], edx
or dword [esp + 0x48], eax
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 4]
mov ecx, dword [edi]
mov esi, dword [esp + 0x14]
mov dx, word [edi + 0x1c]
mov word [eax + esi*2], dx
mov eax, dword [ecx + 0xc]
mov esi, dword [ecx + 0x10]
mov ecx, 0x100
test dword [eax + 4], ecx
je 0x5179df
mov ecx, dword [ebp + 8]
push ecx
jmp 0x517a01
test esi, esi
je 0x5179ee
test dword [esi + 4], ecx
je 0x5179ee
mov edx, dword [ebp + 8]
push edx
jmp 0x5179ff
mov ebx, dword [ebp + 8]
push ebx
call fcn.004df870
add esp, 4
test eax, eax
jne 0x517a0d
push ebx
mov eax, esi
call fcn.004df870
add esp, 4
test eax, eax
je 0x517a11
mov eax, dword [eax]
jmp 0x517a16
mov eax, 0x5e40c0
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x20]
mov ecx, dword [esp + 0x14]
mov dword [edx + ecx*4], eax
inc ecx
mov dword [esp + 0x14], ecx
add edi, 0x30
cmp edi, dword [esp + 0x34]
jb 0x5178a0
mov ebx, dword [esp + 0x2c]
xor esi, esi
cmp dword [esp + 0x20], esi
jle 0x517a7d
mov edi, dword [esp + 0x14]
mov eax, 1
xor edx, edx
mov ecx, esi
call fcn.0058de50
and eax, dword [esp + 0x50]
and edx, dword [esp + 0x54]
or eax, edx
je 0x517a72
mov eax, dword [ebx + 4]
mov word [eax + edi*2], si
mov ecx, dword [ebx + 0x20]
mov dword [ecx + edi*4], 0x5e40c0
inc edi
inc esi
cmp esi, dword [esp + 0x20]
jl 0x517a46
mov dword [esp + 0x14], edi
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx + 0x3c]
and ecx, 0x80000000
xor eax, eax
or eax, ecx
je 0x517ac5
mov edx, dword [esp + 0x30]
mov eax, 0x3f
mov ecx, eax
cmp cx, word [edx + 0x2a]
jge 0x517ac5
mov ecx, dword [esp + 0x14]
mov esi, dword [ebx + 4]
mov word [esi + ecx*2], ax
mov esi, dword [ebx + 0x20]
mov dword [esi + ecx*4], 0x5e40c0
movsx esi, word [edx + 0x2a]
inc eax
inc ecx
cmp eax, esi
jl 0x517aa4
mov dword [esp + 0x14], ecx
jmp 0x517ac9
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + 4]
mov edi, dword [ebp + 0x1c]
mov esi, dword [esp + 0x38]
or eax, 0xffffffff
mov word [edx + ecx*2], ax
mov edx, dword [ebx + 0x20]
mov eax, dword [ebp + 8]
mov dword [edx + ecx*4], 0x5e40c0
mov ecx, dword [eax + 0x28]
mov dword [edi + 8], ecx
inc dword [eax + 0x28]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x88]
mov ebx, dword [esi + 0xc]
mov edx, dword [edi + 8]
inc ecx
cmp dword [ebx + 0x30], eax
jg 0x517b18
push 0
push ecx
push edx
push 0x70
mov eax, esi
call fcn.004cc1b0
add esp, 0x10
jmp 0x517b44
lea ebx, [eax + 1]
mov dword [esi + 0x88], ebx
mov ebx, dword [esi + 0x58]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*4]
xor ebx, ebx
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0x70
mov word [eax + 2], bx
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov ebx, dword [esp + 0x2c]
push eax
mov dword [esp + 0x38], ecx
call fcn.004f1910
add esp, 4
test eax, eax
je 0x517b8e
mov edx, dword [esp + 0x34]
mov ecx, dword [edx]
cmp byte [ecx + 0x49], 0
je 0x517b77
mov edx, 0xfffffff7
call fcn.004cccf0
jmp 0x517b8e
mov ecx, dword [edx + 0x88]
mov edx, dword [edx + 0x58]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*4 - 0x14]
mov byte [ecx + 1], 0xf7
mov dword [ecx + 0x10], eax
mov ecx, dword [ebp + 0xc]
movzx eax, byte [edi + 0x2c]
mov edx, dword [ecx]
mov ecx, dword [edx + 4]
lea eax, [eax + eax*8]
test byte [ecx + eax*8 + 0x30], 0x10
lea edx, [ecx + eax*8 + 8]
mov ecx, dword [esi + 0x88]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x30], edx
je 0x517c8c
cmp dword [eax + 0x30], ecx
mov edi, dword [edx + 0x1c]
jg 0x517bd8
xor ebx, ebx
push ebx
push ebx
push ebx
push 0x46
mov eax, esi
call fcn.004cc1b0
mov edx, dword [esp + 0x40]
add esp, 0x10
jmp 0x517c04
mov ebx, dword [esi + 0x58]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea eax, [ecx + ecx*4]
lea eax, [ebx + eax*4]
xor ebx, ebx
mov byte [eax], 0x46
mov word [eax + 2], bx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, ecx
mov ecx, dword [edx + 0x18]
mov edx, dword [esi + 0xc]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x88]
cmp dword [edx + 0x30], eax
jg 0x517c2a
push ecx
push ebx
push edi
push 0xd
mov eax, esi
call fcn.004cc1b0
add esp, 0x10
jmp 0x517c54
lea edx, [eax + 1]
mov dword [esi + 0x88], edx
mov edx, dword [esi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov byte [eax], 0xd
mov word [eax + 2], dx
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], dl
mov ecx, dword [esi + 0x88]
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x30], ecx
jg 0x517c73
push ebx
push ebx
push edi
push 0xe
mov eax, esi
call fcn.004cc1b0
add esp, 0x10
jmp 0x517cd5
lea edx, [ecx + 1]
mov dword [esi + 0x88], edx
mov edx, dword [esi + 0x58]
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*4]
mov byte [eax], 0xe
xor edx, edx
jmp 0x517cc0
cmp dword [eax + 0x30], ecx
mov edi, dword [edi + 4]
jg 0x517ca7
xor ebx, ebx
push ebx
push ebx
push edi
push 0x24
mov eax, esi
call fcn.004cc1b0
add esp, 0x10
jmp 0x517cd5
lea edx, [ecx + 1]
mov dword [esi + 0x88], edx
mov edx, dword [esi + 0x58]
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*4]
xor edx, edx
mov byte [eax], 0x24
xor ebx, ebx
mov word [eax + 2], dx
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], dl
mov eax, ecx
mov dword [esp + 0x34], eax
cmp dword [esp + 0x1c], ebx
je 0x517e39
mov esi, dword [esi + 0xc]
mov eax, dword [esi + 0x3c]
lea edx, [eax - 1]
lea ecx, [eax + 1]
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], eax
mov dword [esi + 0x3c], ecx
test eax, edx
jne 0x517e01
mov ebx, dword [esi + 0x40]
mov esi, dword [esi]
xor ecx, ecx
lea edi, [eax*8 + 4]
test ebx, ebx
jne 0x517d1f
push ecx
push edi
mov eax, esi
call fcn.004ab890
jmp 0x517d4e
cmp ebx, dword [esi + 0x128]
jb 0x517d45
cmp ebx, dword [esi + 0x12c]
jae 0x517d45
movzx eax, word [esi + 0x10c]
cdq
cmp ecx, edx
ja 0x517d45
jb 0x517d41
cmp edi, eax
ja 0x517d45
mov edi, ebx
jmp 0x517d53
push ecx
push edi
mov eax, ebx
call fcn.004ab9a0
mov edi, eax
add esp, 8
test edi, edi
jne 0x517df2
test ebx, ebx
je 0x517df2
test esi, esi
je 0x517d9a
cmp dword [esi + 0x1d8], edi
je 0x517d7a
mov eax, ebx
mov ecx, esi
call fcn.004ab500
jmp 0x517df2
cmp ebx, dword [esi + 0x128]
jb 0x517d9a
cmp ebx, dword [esi + 0x12c]
jae 0x517d9a
mov eax, dword [esi + 0x124]
mov dword [ebx], eax
mov dword [esi + 0x124], ebx
jmp 0x517df2
cmp dword [0x631928], 0
je 0x517de8
mov eax, dword [0x640888]
test eax, eax
je 0x517db6
push eax
call dword [0x631984]
add esp, 4
push ebx
call dword [0x631960]
sub dword [0x640828], eax
dec dword [0x64084c]
add esp, 4
push ebx
call dword [0x631958]
mov eax, dword [0x640888]
add esp, 4
test eax, eax
je 0x517df2
push eax
call dword [0x63198c]
jmp 0x517def
push ebx
call dword [0x631958]
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x40], edi
xor ebx, ebx
mov esi, ecx
mov esi, dword [esi + 0x40]
cmp esi, ebx
je 0x517e0f
mov dword [esi + eax*4], 0xffffffff
mov edx, dword [esp + 0x1c]
or eax, 0xffffffff
sub eax, dword [esp + 0x10]
push 0x10
push eax
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 8]
push edx
push eax
call fcn.004e5b70
mov eax, dword [esp + 0x28]
add esp, 0x10
or dword [eax + 0x24], 0x20000
mov ecx, dword [ebp + 8]
mov al, byte [ecx + 0x13]
test al, al
jne 0x517e51
mov eax, ecx
inc dword [eax + 0x2c]
mov ebx, dword [eax + 0x2c]
mov dword [esp + 0x20], ebx
jmp 0x517e66
dec al
movzx edx, al
mov byte [ecx + 0x13], al
mov eax, dword [ecx + edx*4 + 0x90]
mov dword [esp + 0x20], eax
mov ebx, eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x2c]
mov edi, dword [ebp + 8]
push 0
push 0
push 0
push ebx
push edx
push eax
xor eax, eax
call fcn.004f3580
mov esi, dword [esp + 0x50]
mov edx, dword [esi + 0xc]
mov edi, dword [ebp + 0x1c]
mov ecx, dword [edi + 8]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x88]
add esp, 0x18
cmp dword [edx + 0x30], eax
jg 0x517eb7
push 0
push ebx
push ecx
push 0x85
mov eax, esi
call fcn.004cc1b0
add esp, 0x10
jmp 0x517ee3
lea edx, [eax + 1]
mov dword [esi + 0x88], edx
mov edx, dword [esi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x85
mov word [eax + 2], dx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esi + 0x88]
test eax, eax
jle 0x517efd
mov ecx, dword [esi + 0x58]
lea eax, [eax + eax*4]
mov edx, 0x10
mov word [ecx + eax*4 - 0x12], dx
cmp dword [esp + 0x1c], 0
je 0x517f23
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x40]
test eax, eax
je 0x517f23
mov ecx, dword [esp + 0x3c]
lea edx, [ecx*4 + 4]
mov ecx, dword [esi + 0x88]
sub eax, edx
mov dword [eax], ecx
mov edx, dword [esp + 0x30]
test byte [edx + 0x28], 0x10
je 0x517fe3
mov eax, dword [esp + 0x40]
test eax, eax
jge 0x517f40
mov eax, dword [esi + 0x88]
dec eax
mov ecx, dword [esi]
cmp byte [ecx + 0x49], 0
je 0x517f4f
mov eax, 0x6403fc
jmp 0x517f58
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x58]
lea eax, [eax + edx*4]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x34]
add edx, ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 8], edx
mov eax, dword [edi + 4]
mov edi, dword [ecx + 0x20]
push 1
push eax
mov eax, dword [ebp + 8]
mov edx, ebx
call fcn.00517430
mov eax, dword [esi + 0x88]
mov edx, dword [esi + 0xc]
add esp, 8
cmp dword [edx + 0x30], eax
jg 0x517faf
push 0
push ebx
push 0
push 0xb
mov eax, esi
call fcn.004cc1b0
mov eax, dword [esp + 0x40]
add esp, 0x10
and dword [eax + 0x28], 0xffffffef
jmp 0x518039
lea ecx, [eax + 1]
mov dword [esi + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x58]
lea eax, [eax + edx*4]
xor ecx, ecx
mov byte [eax], 0xb
mov word [eax + 2], cx
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esp + 0x30]
and dword [eax + 0x28], 0xffffffef
jmp 0x518039
mov edx, dword [edi + 4]
mov eax, dword [esi + 0x88]
mov edi, dword [esi + 0xc]
cmp dword [edi + 0x30], eax
mov ebx, dword [esp + 0x34]
lea ecx, [ebx + 1]
jg 0x51800d
push 0
push ecx
push edx
push 5
mov eax, esi
call fcn.004cc1b0
add esp, 0x10
jmp 0x518039
lea edi, [eax + 1]
mov dword [esi + 0x88], edi
mov edi, dword [esi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edi + eax*4]
xor edi, edi
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 5
mov word [eax + 2], di
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esi + 0x88]
mov edx, dword [ebp + 8]
test eax, eax
jle 0x518056
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x58]
mov edi, 3
mov word [eax + ecx*4 - 0x12], di
mov ecx, dword [esi + 0x88]
test ebx, ebx
jge 0x518063
lea ebx, [ecx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x49], 0
je 0x518072
mov eax, 0x6403fc
jmp 0x51807b
mov edi, dword [esi + 0x58]
lea eax, [ebx + ebx*4]
lea eax, [edi + eax*4]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x51809a
mov al, byte [edx + 0x13]
cmp al, 8
jae 0x51809a
movzx eax, al
mov dword [edx + eax*4 + 0x90], ecx
inc byte [edx + 0x13]
mov eax, dword [esp + 0x44]
mov ecx, dword [esi + 0x88]
test eax, eax
jge 0x5180ab
lea eax, [ecx - 1]
mov edx, dword [esi]
cmp byte [edx + 0x49], 0
je 0x5180ba
mov eax, 0x6403fc
jmp 0x5180c3
mov edx, dword [esi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5180dd
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.004e0a30
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret