Function at 0x5082d0
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.00507bf0
add esp, 8
test eax, eax
jne 0x5090ff
push ebp
push edi
call fcn.004cbe10
mov dword [esp + 0x30], eax
add esp, 8
mov eax, dword [ebp + 0xc]
mov cl, byte [eax]
cmp cl, 0xb0
jne 0x508327
mov cl, byte [eax + 2]
cmp cl, 0xb1
jne 0x508333
mov eax, dword [eax + 0x14]
mov ebp, dword [eax]
jmp 0x508347
cmp cl, 0x8a
jne 0x508342
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x1c]
mov ebp, dword [eax]
jmp 0x508347
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 0x50836f
push eax
call fcn.00504c90
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x20], ecx
jmp 0x50837d
call fcn.0051b540
add esp, 8
mov dword [esp + 0x20], eax
mov ecx, eax
test ecx, ecx
je 0x508391
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 0x508f7c
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.0050c880
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.004cb8d0
add esp, 0x24
mov dword [esp + 0x34], eax
xor ecx, ecx
mov byte [edi + 0x17], bl
test ebp, ebp
jle 0x5083ff
mov eax, dword [esp + 0x20]
cmp dword [eax + ecx*4], ecx
jne 0x5083fb
inc ecx
cmp ecx, ebp
jl 0x5083f1
mov eax, dword [esp + 0x34]
cmp ecx, ebp
jne 0x50840e
mov ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x508495
push ebp
push edi
call fcn.00516b60
add esp, 8
mov ecx, eax
xor ebx, ebx
mov dword [esp + 0x14], ecx
test ebp, ebp
jle 0x508495
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 0x508452
push 0
push edx
push ebp
push 0x4f
push esi
call fcn.004e2c80
add esp, 0x14
jmp 0x508481
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 0x508430
mov edi, dword [esp + 0x48]
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x38], 5
jne 0x5088c8
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.0050a460
mov ebp, eax
add esp, 8
mov eax, dword [esp + 0x54]
cmp eax, dword [esp + 0x50]
je 0x50853c
mov al, byte [edi + 0x13]
test al, al
jne 0x5084e2
inc dword [edi + 0x2c]
mov ebx, dword [edi + 0x2c]
jmp 0x5084f1
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 0x508511
mov eax, dword [esp + 0x14]
push ebx
push eax
push eax
push 0x66
push esi
call fcn.004e2c80
add esp, 0x14
jmp 0x50853c
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 0x5087d5
lea ecx, [eax + 8]
mov dword [esp + 0x28], ecx
lea eax, [esp + 0x40]
push eax
push dword [ecx]
push edi
call fcn.0050a340
add esp, 0xc
mov ebx, eax
cmp dword [esp + 0x48], 0
mov dword [esp + 0x30], ebx
je 0x5085ce
mov eax, dword [esp + 0x28]
push dword [eax]
call fcn.00507b10
add esp, 4
test eax, eax
je 0x5085ce
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x5085a3
mov eax, dword [esp + 0x48]
push eax
push ebx
push eax
push 0x66
push esi
call fcn.004e2c80
add esp, 0x14
jmp 0x5085ce
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 0x5085ea
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x5085ea
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 0x5086e2
mov eax, dword [esp + 0x54]
cmp eax, dword [esp + 0x50]
jne 0x5086e2
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 0x50863c
push ebx
mov ebx, dword [esp + 0x54]
push ebx
push ecx
push eax
push esi
call fcn.004e2c80
add esp, 0x14
mov edx, eax
jmp 0x50867b
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 0x508691
push ebp
push 0xfffffffffffffffe
push eax
call fcn.004cfa50
add esp, 0xc
jmp 0x5086c3
test edx, edx
jns 0x508699
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 0x5086b8
push 0xfffffffffffffffe
push ebp
push eax
push esi
call fcn.00547a80
add esp, 0x10
jmp 0x5086c3
test ebp, ebp
je 0x5086c3
mov dword [eax + 0x10], ebp
mov byte [eax + 1], 0xfe
mov ecx, dword [esi + 0x74]
test ecx, ecx
jle 0x5087b5
mov eax, dword [esp + 0x2c]
lea ecx, [ecx + ecx*4]
mov al, byte [eax]
or al, 0x10
movsx dx, al
jmp 0x5087ad
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 0x508714
push ebx
push dword [esp + 0x20]
push ecx
push eax
push esi
call fcn.004e2c80
add esp, 0x14
mov edx, eax
jmp 0x508753
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 0x508769
push ebp
push 0xfffffffffffffffe
push eax
call fcn.004cfa50
add esp, 0xc
jmp 0x50879b
test edx, edx
jns 0x508771
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 0x508790
push 0xfffffffffffffffe
push ebp
push eax
push esi
call fcn.00547a80
add esp, 0x10
jmp 0x50879b
test ebp, ebp
je 0x50879b
mov dword [eax + 0x10], ebp
mov byte [eax + 1], 0xfe
mov eax, dword [esi + 0x74]
test eax, eax
jle 0x5087b5
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 0x508558
mov ebx, dword [esp + 0x48]
test ebx, ebx
je 0x50887c
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x5087fd
push 0
push dword [esp + 0x58]
push ebx
push 0x32
push esi
call fcn.004e2c80
add esp, 0x14
jmp 0x50882c
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 0x508849
push 0
push dword [esp + 0x54]
push 0
push 0xb
push esi
call fcn.004e2c80
add esp, 0x14
jmp 0x50887c
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 0x50889a
push edx
push esi
push ecx
call fcn.004f4d20
add esp, 0xc
jmp 0x5088a3
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
test ebx, ebx
je 0x508f5a
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x508f5a
movzx eax, al
mov dword [edi + eax*4 + 0x98], ebx
inc byte [edi + 0x13]
jmp 0x508f5a
mov edx, dword [esp + 0x50]
cmp dword [esp + 0x54], edx
jne 0x5088d8
mov dword [esp + 0x28], edx
jmp 0x5088e6
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 0x5089cb
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 0x508914
mov al, byte [ecx + 2]
cmp al, 0xb1
jne 0x50891f
mov edx, dword [ecx + 0x14]
mov eax, dword [edx]
jmp 0x50892b
cmp al, 0x8a
jne 0x50894a
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 0x1c]
mov eax, dword [eax]
cmp eax, 1
jle 0x50894a
cmp byte [esp + 0x13], 0x8a
je 0x508943
cmp byte [ecx + 2], 0x8a
je 0x508943
mov ecx, dword [ebx + edx + 8]
jmp 0x50894a
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + ebx + 8]
cmp dword [edi + 0x24], 0
jne 0x508f7c
push ecx
call fcn.00507b10
add esp, 4
test eax, eax
je 0x5089ac
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x50897d
push 0
push dword [esp + 0x2c]
push ebp
push 0x32
push esi
call fcn.004e2c80
add esp, 0x14
jmp 0x5089ac
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 0x508900
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x50]
cmp dword [esp + 0x38], 1
jne 0x508a7a
mov ecx, dword [esi + 0x74]
mov ebx, dword [esp + 0x18]
cmp dword [esi + 0x78], ecx
jg 0x5089f5
push dword [esp + 0x14]
push edx
push ebx
push 0x20
push esi
call fcn.004e2c80
add esp, 0x14
jmp 0x508a20
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 0x508a42
push 0
push 0
push 0
push 0xb
push esi
call fcn.004e2c80
add esp, 0x14
jmp 0x508b06
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 0x508b0a
mov edx, dword [esi + 0x74]
mov ebx, dword [esp + 0x14]
cmp dword [esi + 0x78], edx
jg 0x508a99
push 0
push ebp
push ebx
push 0x5f
push esi
call fcn.004e2c80
add esp, 0x14
mov edx, eax
jmp 0x508ac4
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.0052e700
mov eax, dword [esp + 0x60]
add esp, 0x10
push ebp
push ebx
cmp eax, dword [esp + 0x5c]
jne 0x508af4
push eax
push dword [esp + 0x24]
push 0x1e
push esi
call fcn.0052e310
add esp, 0x18
jmp 0x508f5a
mov ebx, dword [esp + 0x20]
push 0
push ebx
push 0x1f
push esi
call fcn.0052e310
add esp, 0x18
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x508b66
cmp ebp, 1
jne 0x508b66
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x508b33
push 0
push dword [esp + 0x54]
push edx
push 0x33
push esi
call fcn.004e2c80
add esp, 0x14
jmp 0x508b66
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 0x508bbd
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x508b8a
push 0
push eax
push 0
push 0xb
push esi
call fcn.004e2c80
add esp, 0x14
jmp 0x508bbd
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 0x508be8
mov ecx, dword [esi + 0xc]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x508bdf
push edx
push esi
push ecx
call fcn.004f4d20
add esp, 0xc
jmp 0x508be8
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 0x508c10
push 0
push dword [esp + 0x54]
push ebx
push 0x26
push esi
call fcn.004e2c80
mov edx, dword [esp + 0x64]
add esp, 0x14
mov dword [esp + 0x38], eax
jmp 0x508c3f
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 0x508c50
dec dword [edi + 0x38]
mov eax, dword [edi + 0x38]
mov dword [esp + 0x28], eax
jmp 0x508c54
mov dword [esp + 0x28], edx
mov dword [esp + 0x4c], 0
test ebp, ebp
jle 0x508e18
xor ebx, ebx
mov dword [esp + 0x40], ebx
lea ebx, [ebx]
mov al, byte [edi + 0x13]
test al, al
jne 0x508c7f
inc dword [edi + 0x2c]
mov ebp, dword [edi + 0x2c]
jmp 0x508c8e
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 0x508c9d
mov al, byte [ecx + 2]
cmp al, 0xb1
jne 0x508ca8
mov ecx, dword [ecx + 0x14]
mov eax, dword [ecx]
jmp 0x508cb4
cmp al, 0x8a
jne 0x508cdb
mov ecx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x1c]
mov eax, dword [eax]
cmp eax, 1
jle 0x508cd7
cmp dl, 0x8a
je 0x508cce
mov eax, dword [esp + 0x24]
cmp byte [eax + 2], 0x8a
je 0x508cce
mov eax, dword [ecx + ebx + 8]
jmp 0x508cdd
mov eax, dword [ecx + 0x1c]
mov eax, dword [eax + ebx + 8]
jmp 0x508cdd
mov ecx, dword [esp + 0x24]
mov eax, ecx
push eax
push edi
call fcn.0050a460
mov ecx, dword [esi + 0x74]
add esp, 8
mov ebx, eax
cmp dword [esi + 0x78], ecx
jg 0x508d08
mov edx, dword [esp + 0x4c]
push ebp
push edx
push dword [esp + 0x20]
push 0x5d
push esi
call fcn.004e2c80
add esp, 0x14
jmp 0x508d37
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 0x508d5c
mov eax, dword [esp + 0x4c]
add eax, dword [esp + 0x14]
push ebp
push dword [esp + 0x2c]
push eax
push 0x34
push esi
call fcn.004e2c80
add esp, 0x14
mov edx, eax
jmp 0x508d94
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 0x508daa
push ebx
push 0xfffffffffffffffe
push eax
call fcn.004cfa50
add esp, 0xc
jmp 0x508ddc
test edx, edx
jns 0x508db2
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 0x508dd1
push 0xfffffffffffffffe
push ebx
push eax
push esi
call fcn.00547a80
add esp, 0x10
jmp 0x508ddc
test ebx, ebx
je 0x508ddc
mov dword [eax + 0x10], ebx
mov byte [eax + 1], 0xfe
test ebp, ebp
je 0x508df4
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x508df4
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 0x508c70
mov ebx, dword [esp + 0x18]
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x508e35
push 0
push dword [esp + 0x58]
push 0
push 0xb
push esi
call fcn.004e2c80
add esp, 0x14
jmp 0x508e68
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 0x508f31
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x28]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x508e8f
push edx
push esi
push ecx
call fcn.004f4d20
add esp, 0xc
jmp 0x508e98
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 0x508eb6
push 0
push edx
push ebx
push 5
push esi
call fcn.004e2c80
add esp, 0x14
jmp 0x508ee1
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 0x508efe
push 0
push dword [esp + 0x54]
push 0
push 0xb
push esi
call fcn.004e2c80
add esp, 0x14
jmp 0x508f31
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 0x508f3f
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x508f4e
mov eax, 0x74c854
jmp 0x508f57
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 0x508f7c
test ecx, ecx
je 0x508f7c
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x508f7c
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 0x509034
test ecx, ecx
je 0x508fdf
cmp dword [ecx + 0x210], 0
je 0x508fa7
push ebx
push ecx
call fcn.004e8dc0
add esp, 8
jmp 0x509034
cmp ebx, dword [ecx + 0x164]
jae 0x508fdf
cmp ebx, dword [ecx + 0x15c]
jb 0x508fc7
mov eax, dword [ecx + 0x158]
mov dword [ebx], eax
mov dword [ecx + 0x158], ebx
jmp 0x509034
cmp ebx, dword [ecx + 0x160]
jb 0x508fdf
mov eax, dword [ecx + 0x150]
mov dword [ebx], eax
mov dword [ecx + 0x150], ebx
jmp 0x509034
cmp dword [0x7475d8], 0
je 0x50902a
mov eax, dword [0x74c528]
test eax, eax
je 0x508ffb
push eax
call dword [0x747628]
add esp, 4
push ebx
call dword [0x747604]
sub dword [0x74c4b0], eax
dec dword [0x74c4d4]
push ebx
call dword [0x7475fc]
mov eax, dword [0x74c528]
add esp, 8
test eax, eax
je 0x509034
push eax
call dword [0x747630]
jmp 0x509031
push ebx
call dword [0x7475fc]
add esp, 4
mov ebx, dword [esp + 0x28]
mov ecx, dword [edi]
test ebx, ebx
je 0x5090ff
test ecx, ecx
je 0x5090a2
cmp dword [ecx + 0x210], 0
je 0x509060
push ebx
push ecx
call fcn.004e8dc0
add esp, 8
pop edi
pop ebp
pop ebx
add esp, 0x34
ret
cmp ebx, dword [ecx + 0x164]
jae 0x5090a2
cmp ebx, dword [ecx + 0x15c]
jb 0x509085
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 0x5090a2
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 [0x7475d8], 0
je 0x5090f5
mov eax, dword [0x74c528]
test eax, eax
je 0x5090be
push eax
call dword [0x747628]
add esp, 4
push ebx
call dword [0x747604]
sub dword [0x74c4b0], eax
dec dword [0x74c4d4]
push ebx
call dword [0x7475fc]
mov eax, dword [0x74c528]
add esp, 8
test eax, eax
je 0x5090ff
push eax
call dword [0x747630]
add esp, 4
pop edi
pop ebp
pop ebx
add esp, 0x34
ret
push ebx
call dword [0x7475fc]
add esp, 4
pop edi
pop ebp
pop ebx
add esp, 0x34
ret