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

Disassembly:
sub esp, 0x34
push ebx
push ebp
mov ebp, dword [esp + 0x44]
xor eax, eax
push edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov bl, byte [edi + 0x17]
push ebp
push edi
mov dword [esp + 0x40], 0
mov dword [esp + 0x28], eax
call fcn.00507df0
add esp, 8
test eax, eax
jne 0x5092ff
push ebp
push edi
call fcn.004cc010
mov dword [esp + 0x30], eax
add esp, 8
mov eax, dword [ebp + 0xc]
mov cl, byte [eax]
cmp cl, 0xb0
jne 0x508527
mov cl, byte [eax + 2]
cmp cl, 0xb1
jne 0x508533
mov eax, dword [eax + 0x14]
mov ebp, dword [eax]
jmp 0x508547
cmp cl, 0x8a
jne 0x508542
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x1c]
mov ebp, dword [eax]
jmp 0x508547
mov ebp, 1
mov eax, dword [edi]
push esi
lea esi, [ebp*4 + 1]
mov dword [esp + 0x1c], ebp
add esi, ebp
push 0
push esi
test eax, eax
je 0x50856f
push eax
call fcn.00504e90
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x20], ecx
jmp 0x50857d
call fcn.0051b740
add esp, 8
mov dword [esp + 0x20], eax
mov ecx, eax
test ecx, ecx
je 0x508591
push esi
push 0
push ecx
call sub.MSVCRT.dll_memset
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
jne 0x50917c
mov esi, dword [edi + 8]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x58]
push ecx
neg eax
lea ecx, [esp + 0x44]
sbb eax, eax
and eax, ecx
push eax
push 3
push dword [esp + 0x5c]
push edi
call fcn.0050ca80
mov dword [esp + 0x50], eax
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x40]
push eax
push edi
mov byte [edi + 0x17], 0
call fcn.004cbad0
add esp, 0x24
mov dword [esp + 0x34], eax
xor ecx, ecx
mov byte [edi + 0x17], bl
test ebp, ebp
jle 0x5085ff
mov eax, dword [esp + 0x20]
cmp dword [eax + ecx*4], ecx
jne 0x5085fb
inc ecx
cmp ecx, ebp
jl 0x5085f1
mov eax, dword [esp + 0x34]
cmp ecx, ebp
jne 0x50860e
mov ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x508695
push ebp
push edi
call fcn.00516d60
add esp, 8
mov ecx, eax
xor ebx, ebx
mov dword [esp + 0x14], ecx
test ebp, ebp
jle 0x508695
mov ebp, dword [esp + 0x34]
mov edi, eax
lea ebx, [ebx]
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x74]
mov edx, dword [eax + ebx*4]
add edx, edi
cmp dword [esi + 0x78], ecx
jg 0x508652
push 0
push edx
push ebp
push 0x4f
push esi
call fcn.004e2e80
add esp, 0x14
jmp 0x508681
mov edi, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x4f
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
inc ebx
inc ebp
cmp ebx, dword [esp + 0x1c]
jl 0x508630
mov edi, dword [esp + 0x48]
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x38], 5
jne 0x508ac8
dec dword [edi + 0x38]
xor ebx, ebx
mov eax, dword [edi + 0x38]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x48], ebx
push dword [eax + 0xc]
mov ecx, dword [eax + 0x14]
push edi
mov dword [esp + 0x2c], ecx
call fcn.0050a660
mov ebp, eax
add esp, 8
mov eax, dword [esp + 0x54]
cmp eax, dword [esp + 0x50]
je 0x50873c
mov al, byte [edi + 0x13]
test al, al
jne 0x5086e2
inc dword [edi + 0x2c]
mov ebx, dword [edi + 0x2c]
jmp 0x5086f1
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov ebx, dword [edi + eax*4 + 0x98]
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x48], ebx
cmp dword [esi + 0x78], ecx
jg 0x508711
mov eax, dword [esp + 0x14]
push ebx
push eax
push eax
push 0x66
push esi
call fcn.004e2e80
add esp, 0x14
jmp 0x50873c
mov edx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x66
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x4c], 0
cmp dword [eax], 0
jle 0x5089d5
lea ecx, [eax + 8]
mov dword [esp + 0x28], ecx
lea eax, [esp + 0x40]
push eax
push dword [ecx]
push edi
call fcn.0050a540
add esp, 0xc
mov ebx, eax
cmp dword [esp + 0x48], 0
mov dword [esp + 0x30], ebx
je 0x5087ce
mov eax, dword [esp + 0x28]
push dword [eax]
call fcn.00507d10
add esp, 4
test eax, eax
je 0x5087ce
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x5087a3
mov eax, dword [esp + 0x48]
push eax
push ebx
push eax
push 0x66
push esi
call fcn.004e2e80
add esp, 0x14
jmp 0x5087ce
mov edx, dword [esp + 0x48]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x66
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x5087ea
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x5087ea
movzx eax, al
mov dword [edi + eax*4 + 0x98], ecx
inc byte [edi + 0x13]
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
dec eax
cmp dword [esp + 0x4c], eax
jl 0x5088e2
mov eax, dword [esp + 0x54]
cmp eax, dword [esp + 0x50]
jne 0x5088e2
mov ecx, dword [esp + 0x14]
xor eax, eax
mov edx, dword [esi + 0x74]
cmp ecx, ebx
setne al
lea eax, [eax*2 + 0x32]
mov dword [esp + 0x38], eax
cmp dword [esi + 0x78], edx
jg 0x50883c
push ebx
mov ebx, dword [esp + 0x54]
push ebx
push ecx
push eax
push esi
call fcn.004e2e80
add esp, 0x14
mov edx, eax
jmp 0x50887b
mov ebx, dword [esp + 0x38]
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov byte [eax + ecx*4], bl
xor ebx, ebx
mov word [eax + ecx*4 + 2], bx
mov ebx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x50]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x30]
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x508891
push ebp
push 0xfffffffffffffffe
push eax
call fcn.004cfc50
add esp, 0xc
jmp 0x5088c3
test edx, edx
jns 0x508899
mov edx, dword [esi + 0x74]
dec edx
mov eax, dword [esi + 0x70]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x5088b8
push 0xfffffffffffffffe
push ebp
push eax
push esi
call fcn.00547c80
add esp, 0x10
jmp 0x5088c3
test ebp, ebp
je 0x5088c3
mov dword [eax + 0x10], ebp
mov byte [eax + 1], 0xfe
mov ecx, dword [esi + 0x74]
test ecx, ecx
jle 0x5089b5
mov eax, dword [esp + 0x2c]
lea ecx, [ecx + ecx*4]
mov al, byte [eax]
or al, 0x10
movsx dx, al
jmp 0x5089ad
mov ecx, dword [esp + 0x14]
xor eax, eax
mov edx, dword [esi + 0x74]
cmp ecx, ebx
setne al
lea eax, [eax*2 + 0x33]
mov dword [esp + 0x38], eax
cmp dword [esi + 0x78], edx
jg 0x508914
push ebx
push dword [esp + 0x20]
push ecx
push eax
push esi
call fcn.004e2e80
add esp, 0x14
mov edx, eax
jmp 0x508953
mov ebx, dword [esp + 0x38]
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov byte [eax + ecx*4], bl
xor ebx, ebx
mov word [eax + ecx*4 + 2], bx
mov ebx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x30]
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x508969
push ebp
push 0xfffffffffffffffe
push eax
call fcn.004cfc50
add esp, 0xc
jmp 0x50899b
test edx, edx
jns 0x508971
mov edx, dword [esi + 0x74]
dec edx
mov eax, dword [esi + 0x70]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x508990
push 0xfffffffffffffffe
push ebp
push eax
push esi
call fcn.00547c80
add esp, 0x10
jmp 0x50899b
test ebp, ebp
je 0x50899b
mov dword [eax + 0x10], ebp
mov byte [eax + 1], 0xfe
mov eax, dword [esi + 0x74]
test eax, eax
jle 0x5089b5
mov ecx, dword [esp + 0x2c]
movsx dx, byte [ecx]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x24]
inc eax
mov ecx, dword [esp + 0x28]
add ecx, 0x14
mov dword [esp + 0x4c], eax
mov dword [esp + 0x28], ecx
cmp eax, dword [edx]
jl 0x508758
mov ebx, dword [esp + 0x48]
test ebx, ebx
je 0x508a7c
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x5089fd
push 0
push dword [esp + 0x58]
push ebx
push 0x32
push esi
call fcn.004e2e80
add esp, 0x14
jmp 0x508a2c
mov edx, dword [esp + 0x54]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x32
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 ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x508a49
push 0
push dword [esp + 0x54]
push 0
push 0xb
push esi
call fcn.004e2e80
add esp, 0x14
jmp 0x508a7c
mov edx, dword [esp + 0x50]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xb
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 ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x1c]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x508a9a
push edx
push esi
push ecx
call fcn.004f4f20
add esp, 0xc
jmp 0x508aa3
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
test ebx, ebx
je 0x50915a
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x50915a
movzx eax, al
mov dword [edi + eax*4 + 0x98], ebx
inc byte [edi + 0x13]
jmp 0x50915a
mov edx, dword [esp + 0x50]
cmp dword [esp + 0x54], edx
jne 0x508ad8
mov dword [esp + 0x28], edx
jmp 0x508ae6
dec dword [edi + 0x38]
mov eax, dword [edi + 0x38]
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], 0
test ebp, ebp
jle 0x508bcb
mov ebp, ecx
xor ebx, ebx
lea ebx, [ebx]
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0xc]
mov al, byte [ecx]
mov byte [esp + 0x13], al
cmp al, 0xb0
jne 0x508b14
mov al, byte [ecx + 2]
cmp al, 0xb1
jne 0x508b1f
mov edx, dword [ecx + 0x14]
mov eax, dword [edx]
jmp 0x508b2b
cmp al, 0x8a
jne 0x508b4a
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 0x1c]
mov eax, dword [eax]
cmp eax, 1
jle 0x508b4a
cmp byte [esp + 0x13], 0x8a
je 0x508b43
cmp byte [ecx + 2], 0x8a
je 0x508b43
mov ecx, dword [ebx + edx + 8]
jmp 0x508b4a
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + ebx + 8]
cmp dword [edi + 0x24], 0
jne 0x50917c
push ecx
call fcn.00507d10
add esp, 4
test eax, eax
je 0x508bac
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x508b7d
push 0
push dword [esp + 0x2c]
push ebp
push 0x32
push esi
call fcn.004e2e80
add esp, 0x14
jmp 0x508bac
mov edx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x32
mov dword [eax + ecx*4 + 4], ebp
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 + 0x30]
add ebx, 0x14
inc edx
inc ebp
mov dword [esp + 0x30], edx
cmp edx, dword [esp + 0x1c]
jl 0x508b00
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x50]
cmp dword [esp + 0x38], 1
jne 0x508c7a
mov ecx, dword [esi + 0x74]
mov ebx, dword [esp + 0x18]
cmp dword [esi + 0x78], ecx
jg 0x508bf5
push dword [esp + 0x14]
push edx
push ebx
push 0x20
push esi
call fcn.004e2e80
add esp, 0x14
jmp 0x508c20
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x20
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x74]
mov dword [esp + 0x30], edx
cmp dword [esi + 0x78], edx
jg 0x508c42
push 0
push 0
push 0
push 0xb
push esi
call fcn.004e2e80
add esp, 0x14
jmp 0x508d06
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x508d0a
mov edx, dword [esi + 0x74]
mov ebx, dword [esp + 0x14]
cmp dword [esi + 0x78], edx
jg 0x508c99
push 0
push ebp
push ebx
push 0x5f
push esi
call fcn.004e2e80
add esp, 0x14
mov edx, eax
jmp 0x508cc4
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x5f
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], ebp
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push ebp
push dword [esp + 0x30]
push edx
push esi
call fcn.0052e900
mov eax, dword [esp + 0x60]
add esp, 0x10
push ebp
push ebx
cmp eax, dword [esp + 0x5c]
jne 0x508cf4
push eax
push dword [esp + 0x24]
push 0x1e
push esi
call fcn.0052e510
add esp, 0x18
jmp 0x50915a
mov ebx, dword [esp + 0x20]
push 0
push ebx
push 0x1f
push esi
call fcn.0052e510
add esp, 0x18
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x508d66
cmp ebp, 1
jne 0x508d66
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x508d33
push 0
push dword [esp + 0x54]
push edx
push 0x33
push esi
call fcn.004e2e80
add esp, 0x14
jmp 0x508d66
mov edi, dword [esp + 0x48]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x50]
mov dword [eax + ecx*4], 0x33
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x50]
cmp eax, dword [esp + 0x54]
jne 0x508dbd
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x508d8a
push 0
push eax
push 0
push 0xb
push esi
call fcn.004e2e80
add esp, 0x14
jmp 0x508dbd
mov edx, dword [esp + 0x50]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xb
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 edx, dword [esp + 0x40]
test edx, edx
je 0x508de8
mov ecx, dword [esi + 0xc]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x508ddf
push edx
push esi
push ecx
call fcn.004f4f20
add esp, 0xc
jmp 0x508de8
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
mov edx, dword [esi + 0x74]
mov dword [esp + 0x38], edx
cmp dword [esi + 0x78], edx
jg 0x508e10
push 0
push dword [esp + 0x54]
push ebx
push 0x26
push esi
call fcn.004e2e80
mov edx, dword [esp + 0x64]
add esp, 0x14
mov dword [esp + 0x38], eax
jmp 0x508e3f
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov edx, dword [esp + 0x50]
mov dword [eax + ecx*4], 0x26
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
cmp ebp, 1
jle 0x508e50
dec dword [edi + 0x38]
mov eax, dword [edi + 0x38]
mov dword [esp + 0x28], eax
jmp 0x508e54
mov dword [esp + 0x28], edx
mov dword [esp + 0x4c], 0
test ebp, ebp
jle 0x509018
xor ebx, ebx
mov dword [esp + 0x40], ebx
lea ebx, [ebx]
mov al, byte [edi + 0x13]
test al, al
jne 0x508e7f
inc dword [edi + 0x2c]
mov ebp, dword [edi + 0x2c]
jmp 0x508e8e
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov ebp, dword [edi + eax*4 + 0x98]
mov ecx, dword [esp + 0x24]
mov dl, byte [ecx]
mov al, dl
cmp al, 0xb0
jne 0x508e9d
mov al, byte [ecx + 2]
cmp al, 0xb1
jne 0x508ea8
mov ecx, dword [ecx + 0x14]
mov eax, dword [ecx]
jmp 0x508eb4
cmp al, 0x8a
jne 0x508edb
mov ecx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x1c]
mov eax, dword [eax]
cmp eax, 1
jle 0x508ed7
cmp dl, 0x8a
je 0x508ece
mov eax, dword [esp + 0x24]
cmp byte [eax + 2], 0x8a
je 0x508ece
mov eax, dword [ecx + ebx + 8]
jmp 0x508edd
mov eax, dword [ecx + 0x1c]
mov eax, dword [eax + ebx + 8]
jmp 0x508edd
mov ecx, dword [esp + 0x24]
mov eax, ecx
push eax
push edi
call fcn.0050a660
mov ecx, dword [esi + 0x74]
add esp, 8
mov ebx, eax
cmp dword [esi + 0x78], ecx
jg 0x508f08
mov edx, dword [esp + 0x4c]
push ebp
push edx
push dword [esp + 0x20]
push 0x5d
push esi
call fcn.004e2e80
add esp, 0x14
jmp 0x508f37
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + ecx*4], 0x5d
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebp
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x74]
cmp dword [esi + 0x78], edx
jg 0x508f5c
mov eax, dword [esp + 0x4c]
add eax, dword [esp + 0x14]
push ebp
push dword [esp + 0x2c]
push eax
push 0x34
push esi
call fcn.004e2e80
add esp, 0x14
mov edx, eax
jmp 0x508f94
mov edi, dword [esp + 0x48]
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x34
mov dword [eax + ecx*4 + 0xc], ebp
mov dword [eax + ecx*4 + 0x10], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x4c]
add eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x28]
mov dword [ecx + 8], eax
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x508faa
push ebx
push 0xfffffffffffffffe
push eax
call fcn.004cfc50
add esp, 0xc
jmp 0x508fdc
test edx, edx
jns 0x508fb2
mov edx, dword [esi + 0x74]
dec edx
mov eax, dword [esi + 0x70]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x508fd1
push 0xfffffffffffffffe
push ebx
push eax
push esi
call fcn.00547c80
add esp, 0x10
jmp 0x508fdc
test ebx, ebx
je 0x508fdc
mov dword [eax + 0x10], ebx
mov byte [eax + 1], 0xfe
test ebp, ebp
je 0x508ff4
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x508ff4
movzx eax, al
mov dword [edi + eax*4 + 0x98], ebp
inc byte [edi + 0x13]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x40]
inc ecx
mov ebp, dword [esp + 0x1c]
add ebx, 0x14
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x40], ebx
cmp ecx, ebp
jl 0x508e70
mov ebx, dword [esp + 0x18]
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x509035
push 0
push dword [esp + 0x58]
push 0
push 0xb
push esi
call fcn.004e2e80
add esp, 0x14
jmp 0x509068
mov edx, dword [esp + 0x54]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xb
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
cmp ebp, 1
jle 0x509131
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x28]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x50908f
push edx
push esi
push ecx
call fcn.004f4f20
add esp, 0xc
jmp 0x509098
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
mov edx, dword [esp + 0x38]
mov ecx, dword [esi + 0x74]
inc edx
cmp dword [esi + 0x78], ecx
jg 0x5090b6
push 0
push edx
push ebx
push 5
push esi
call fcn.004e2e80
add esp, 0x14
jmp 0x5090e1
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 5
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 ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x5090fe
push 0
push dword [esp + 0x54]
push 0
push 0xb
push esi
call fcn.004e2e80
add esp, 0x14
jmp 0x509131
mov edx, dword [esp + 0x50]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xb
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 ecx, dword [esp + 0x30]
mov edx, dword [esi + 0x74]
test ecx, ecx
jns 0x50913f
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x50914e
mov eax, 0x784c9c
jmp 0x509157
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x34]
je 0x50917c
test ecx, ecx
je 0x50917c
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x50917c
movzx eax, al
mov dword [edi + eax*4 + 0x98], ecx
inc byte [edi + 0x13]
mov ebx, dword [esp + 0x20]
mov ecx, dword [edi]
pop esi
test ebx, ebx
je 0x509234
test ecx, ecx
je 0x5091df
cmp dword [ecx + 0x210], 0
je 0x5091a7
push ebx
push ecx
call fcn.004e8fc0
add esp, 8
jmp 0x509234
cmp ebx, dword [ecx + 0x164]
jae 0x5091df
cmp ebx, dword [ecx + 0x15c]
jb 0x5091c7
mov eax, dword [ecx + 0x158]
mov dword [ebx], eax
mov dword [ecx + 0x158], ebx
jmp 0x509234
cmp ebx, dword [ecx + 0x160]
jb 0x5091df
mov eax, dword [ecx + 0x150]
mov dword [ebx], eax
mov dword [ecx + 0x150], ebx
jmp 0x509234
cmp dword [0x77f9b8], 0
je 0x50922a
mov eax, dword [0x784970]
test eax, eax
je 0x5091fb
push eax
call dword [0x77fa08]
add esp, 4
push ebx
call dword [0x77f9e4]
sub dword [0x7848f8], eax
dec dword [0x78491c]
push ebx
call dword [0x77f9dc]
mov eax, dword [0x784970]
add esp, 8
test eax, eax
je 0x509234
push eax
call dword [0x77fa10]
jmp 0x509231
push ebx
call dword [0x77f9dc]
add esp, 4
mov ebx, dword [esp + 0x28]
mov ecx, dword [edi]
test ebx, ebx
je 0x5092ff
test ecx, ecx
je 0x5092a2
cmp dword [ecx + 0x210], 0
je 0x509260
push ebx
push ecx
call fcn.004e8fc0
add esp, 8
pop edi
pop ebp
pop ebx
add esp, 0x34
ret
cmp ebx, dword [ecx + 0x164]
jae 0x5092a2
cmp ebx, dword [ecx + 0x15c]
jb 0x509285
mov eax, dword [ecx + 0x158]
pop edi
mov dword [ebx], eax
pop ebp
mov dword [ecx + 0x158], ebx
pop ebx
add esp, 0x34
ret
cmp ebx, dword [ecx + 0x160]
jb 0x5092a2
mov eax, dword [ecx + 0x150]
pop edi
mov dword [ebx], eax
pop ebp
mov dword [ecx + 0x150], ebx
pop ebx
add esp, 0x34
ret
cmp dword [0x77f9b8], 0
je 0x5092f5
mov eax, dword [0x784970]
test eax, eax
je 0x5092be
push eax
call dword [0x77fa08]
add esp, 4
push ebx
call dword [0x77f9e4]
sub dword [0x7848f8], eax
dec dword [0x78491c]
push ebx
call dword [0x77f9dc]
mov eax, dword [0x784970]
add esp, 8
test eax, eax
je 0x5092ff
push eax
call dword [0x77fa10]
add esp, 4
pop edi
pop ebp
pop ebx
add esp, 0x34
ret
push ebx
call dword [0x77f9dc]
add esp, 4
pop edi
pop ebp
pop ebx
add esp, 0x34
ret