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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
push edi
mov ebx, edx
mov dword [esp + 0x40], ebx
mov edi, ecx
mov dword [esp + 0x18], edi
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x30], eax
dec dword [edi + 0x38]
mov eax, dword [edi + 0x38]
mov esi, dword [edi + 8]
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x44], eax
mov eax, dword [edx]
mov edx, dword [edx + 0x10]
mov dword [esp + 0x3c], eax
mov al, byte [ecx]
mov byte [esp + 0x13], al
movzx eax, al
mov dword [esp + 0x54], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x1c]
add eax, 8
mov dword [esp + 0x48], esi
mov dword [esp + 0x50], eax
test edx, edx
je 0x4e756c
mov eax, dword [ebp + 8]
lea ebx, [esi + 0x70]
mov ecx, dword [esi + 0x74]
mov eax, dword [eax + 0xc]
cmp dword [esi + 0x78], ecx
jg 0x4e74b1
push 0
push edx
push eax
mov edx, 0xc
mov ecx, esi
call fcn.00499040
add esp, 0xc
jmp 0x4e74e9
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx]
mov esi, dword [ebp + 8]
mov dword [eax + ecx*4], 0xc
mov edi, dword [esi + 0xc]
mov esi, dword [esp + 0x48]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x18]
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 0x4e750a
push 0
push dword [esp + 0x34]
mov edx, 0xb
mov ecx, esi
push 0
call fcn.00499040
add esp, 0xc
jmp 0x4e753c
mov edx, dword [esp + 0x30]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx]
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 eax, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [ecx + 0x3c]
not edx
add eax, dword [ecx + 0x38]
jns 0x4e755c
push edx
mov edx, esi
call fcn.00499860
add esp, 4
jmp 0x4e7565
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp + 0x10]
mov ebx, dword [esp + 0x40]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
mov al, byte [esp + 0x13]
cmp al, 9
je 0x4e76ad
cmp al, 0xd
je 0x4e76ad
cmp al, 0xa
je 0x4e7657
mov cl, byte [edi + 0x13]
lea edx, [edi + 0x2c]
mov dword [esp + 0x34], edx
test cl, cl
jne 0x4e75a7
mov eax, dword [edx]
inc eax
mov dword [edx], eax
jmp 0x4e75b6
dec cl
movzx eax, cl
mov byte [edi + 0x13], cl
mov eax, dword [edi + eax*4 + 0x98]
mov dword [esp + 0x2c], eax
mov al, byte [esp + 0x13]
cmp al, 0xc
je 0x4e7629
cmp al, 0xe
je 0x4e7629
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
cmp eax, 1
jne 0x4e75f3
test cl, cl
jne 0x4e75df
inc dword [edx]
mov ebx, dword [edx]
jmp 0x4e76c9
dec cl
movzx eax, cl
mov byte [edi + 0x13], cl
mov ebx, dword [edi + eax*4 + 0x98]
jmp 0x4e76c9
mov ebx, dword [edi + 0x20]
mov ecx, eax
mov dword [esp + 0x28], ebx
cmp ecx, dword [edi + 0x1c]
jg 0x4e7613
sub dword [edi + 0x1c], ecx
lea eax, [ebx + ecx]
mov dword [edi + 0x20], eax
mov dword [esp + 0x34], edx
jmp 0x4e76cd
mov eax, dword [edx]
mov dword [esp + 0x34], edx
lea ebx, [eax + 1]
add eax, ecx
mov dword [esp + 0x28], ebx
mov dword [edx], eax
jmp 0x4e76cd
test cl, cl
jne 0x4e763e
inc dword [edx]
mov ebx, dword [edx]
mov dword [esp + 0x14], 0
jmp 0x4e76c5
dec cl
mov dword [esp + 0x14], 0
movzx eax, cl
mov byte [edi + 0x13], cl
mov ebx, dword [edi + eax*4 + 0x98]
jmp 0x4e76c5
cmp dword [ebx + 0xc], 0
je 0x4e76ad
mov edx, dword [ecx + 0xc]
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4e767e
push 0
push edx
push 0
mov edx, 0x4a
mov ecx, esi
call fcn.00499040
add esp, 0xc
jmp 0x4e76ad
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x4a
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 [ebp + 0x10]
lea edx, [edi + 0x2c]
mov dword [esp + 0x2c], 0
mov ebx, dword [eax + 0xc]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebp + 8]
mov eax, dword [eax]
sub eax, dword [ecx + 4]
test byte [ecx + 0x20], 1
mov dword [esp + 0x4c], eax
je 0x4e7906
inc dword [edx]
mov eax, dword [edx]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x24], eax
inc eax
cmp dword [ecx + 0x10], 0
mov dword [edi + 0x28], eax
je 0x4e775a
mov edx, dword [esi + 0x74]
mov dword [esp + 0x44], edx
cmp dword [esi + 0x78], edx
jg 0x4e7727
push 0
push 0
push 0
mov edx, 0x11
mov ecx, esi
call fcn.00499040
add esp, 0xc
mov dword [esp + 0x44], eax
jmp 0x4e775a
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x11
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
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x74]
inc edx
add edx, dword [esp + 0x4c]
cmp dword [esi + 0x78], ecx
jg 0x4e7785
push edx
push dword [esp + 0x40]
mov edx, 0x78
mov ecx, esi
push dword [esp + 0x2c]
call fcn.00499040
add esp, 0xc
jmp 0x4e77b8
mov edi, dword [esp + 0x24]
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], edi
mov edi, dword [esp + 0x3c]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x78
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x4e77e6
mov eax, dword [esi]
mov edx, dword [esi + 0x74]
cmp byte [eax + 0x57], 0
je 0x4e77d2
mov eax, 0x5d5a30
jmp 0x4e77e3
test ecx, ecx
lea eax, [edx - 1]
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov edx, dword [esi + 0x74]
mov dword [esp + 0x44], edx
cmp dword [esi + 0x78], edx
jg 0x4e7811
push 0
push dword [esp + 0x34]
mov edx, 0x24
mov ecx, esi
push dword [esp + 0x24]
call fcn.00499040
add esp, 0xc
mov dword [esp + 0x44], eax
jmp 0x4e7844
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4], 0x24
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]
mov edx, dword [edx + 0xc]
test edx, edx
jle 0x4e78a2
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4e786f
push 1
push dword [esp + 0x3c]
mov ecx, esi
push edx
mov edx, 0x31
call fcn.00499040
add esp, 0xc
jmp 0x4e78a2
mov ebx, 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 + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + ecx*4], 0x31
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 1
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4e78cc
push dword [esp + 0x24]
mov edx, 0x84
mov ecx, esi
push dword [esp + 0x40]
push dword [esp + 0x24]
call fcn.00499040
add esp, 0xc
xor ecx, ecx
jmp 0x4e79cf
mov edx, dword [esp + 0x1c]
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 + 0x3c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x84
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
xor ecx, ecx
jmp 0x4e79cf
mov edx, dword [esi + 0x74]
mov dword [esp + 0x44], edx
cmp dword [esi + 0x78], edx
jg 0x4e7931
push 0
push dword [esp + 0x34]
mov edx, 0x25
mov ecx, esi
push dword [esp + 0x24]
call fcn.00499040
add esp, 0xc
mov dword [esp + 0x44], eax
jmp 0x4e7964
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4], 0x25
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]
mov edx, dword [edx + 0xc]
test edx, edx
jle 0x4e79c2
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4e798f
push 1
push dword [esp + 0x3c]
mov ecx, esi
push edx
mov edx, 0x31
call fcn.00499040
add esp, 0xc
jmp 0x4e79c2
mov edi, 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 + 0x38]
mov dword [eax + ecx*4], 0x31
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 1
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x1c]
mov ecx, 1
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x4c]
add eax, ecx
mov dword [esp + 0x4c], eax
lea ecx, [eax - 1]
mov dword [esp + 0x3c], ecx
test edx, edx
jle 0x4e7a20
mov edi, dword [esp + 0x50]
add edi, 0x10
nop dword [eax + eax]
cmp word [edi], 0
lea eax, [ecx + 1]
lea edi, [edi + 0x14]
cmovne eax, ecx
mov ecx, eax
sub edx, 1
jne 0x4e7a00
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
lea eax, [edx - 1]
mov dword [esp + 0x44], eax
test eax, eax
js 0x4e7acf
mov edx, dword [esp + 0x50]
mov edi, eax
lea eax, [edi + ebx]
lea ebx, [edi + 1]
mov dword [esp + 0x44], eax
lea ebx, [edi + ebx*4]
lea ebx, [edx + ebx*4]
movzx eax, word [ebx]
test ax, ax
je 0x4e7a52
lea edx, [eax - 1]
jmp 0x4e7a59
mov edx, ecx
dec ecx
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4e7a7f
push dword [esp + 0x44]
mov ecx, esi
push edx
push dword [esp + 0x2c]
mov edx, 0x5d
call fcn.00499040
mov edx, dword [esp + 0x50]
add esp, 0xc
jmp 0x4e7ab2
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov esi, dword [esp + 0x24]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x44]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x48]
mov dword [eax + ecx*4], 0x5d
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x3c]
dec edx
sub ebx, 0x14
mov dword [esp + 0x44], edx
sub edi, 1
jns 0x4e7a45
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x54]
add eax, 0xfffffff6
cmp eax, 5
ja case.0x4e7adf.13
jmp dword [eax*4 + 0x4e8048]
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4e7b09
mov edx, dword [esp + 0x4c]
mov ecx, esi
push ebx
push edx
push dword [esp + 0x2c]
mov edx, 0x5d
call fcn.00499040
add esp, 0xc
jmp 0x4e7b38
mov edx, dword [esp + 0x24]
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], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4e7b5f
push 0
push dword [esp + 0x30]
mov edx, 0x7e
mov ecx, esi
push dword [esp + 0x28]
call fcn.00499040
mov edx, dword [esp + 0x38]
add esp, 0xc
jmp 0x4e7b92
mov edx, dword [esp + 0x20]
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 + 0x2c]
mov dword [eax + ecx*4], 0x7e
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 0x4e7bb1
push edx
push ebx
push dword [esp + 0x28]
mov edx, 0x7f
mov ecx, esi
call fcn.00499040
add esp, 0xc
jmp 0x4e7be0
mov edi, dword [esp + 0x20]
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], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x7f
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x74]
test eax, eax
jle case.0x4e7adf.10
lea ecx, [eax + eax*4]
mov edx, 8
mov eax, dword [esi + 0x70]
mov word [eax + ecx*4 - 0x12], dx
jmp case.0x4e7adf.10
mov eax, dword [ebp + 0x10]
mov ecx, esi
push edx
push dword [eax + 0x14]
push dword [esp + 0x34]
push edx
push ebx
mov edx, 0x60
call fcn.004993e0
mov edx, dword [esi + 0x74]
add esp, 0x14
cmp dword [esi + 0x78], edx
jg 0x4e7c40
push ebx
push dword [esp + 0x30]
mov edx, 0x89
mov ecx, esi
push dword [esp + 0x28]
call fcn.00499040
add esp, 0xc
mov edx, eax
jmp 0x4e7c73
mov edi, dword [esp + 0x20]
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x89
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
jne case.0x4e7adf.10
mov eax, dword [esi + 0x70]
lea ecx, [edx + edx*4]
mov edx, dword [esp + 0x14]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edx
jmp 0x4e7eb5
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 8]
mov al, byte [edi + 0x13]
mov dword [esp + 0x4c], ecx
test al, al
jne 0x4e7cb2
mov eax, dword [esp + 0x34]
inc dword [eax]
mov edx, dword [eax]
jmp 0x4e7cc1
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov edx, dword [edi + eax*4 + 0x98]
mov eax, ecx
mov dword [esp + 0x34], edx
mov ecx, dword [esp + 0x14]
shr eax, 0x1f
sub ecx, eax
add eax, ebx
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x74]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x54], eax
cmp dword [esi + 0x78], eax
jg 0x4e7cfd
push edx
push ecx
push dword [esp + 0x58]
mov edx, 0x60
mov ecx, esi
call fcn.00499040
add esp, 0xc
jmp 0x4e7d32
mov edi, dword [esp + 0x50]
inc eax
mov dword [esi + 0x74], eax
mov eax, dword [esp + 0x54]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x48]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x60
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x4c], 0
mov edx, dword [esi + 0x74]
mov eax, dword [esi + 0x78]
jge 0x4e7d8c
cmp eax, edx
jg 0x4e7d60
push ebx
push dword [esp + 0x38]
mov edx, 0x7f
mov ecx, esi
push dword [esp + 0x28]
call fcn.00499040
add esp, 0xc
jmp case.0x4e7adf.10
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + ecx*4], 0x7f
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebx
jmp 0x4e7ea9
cmp eax, edx
jg 0x4e7dac
push ebx
push dword [esp + 0x38]
mov edx, 0x89
mov ecx, esi
push dword [esp + 0x28]
call fcn.00499040
add esp, 0xc
mov edx, eax
jmp 0x4e7ddf
mov edi, dword [esp + 0x20]
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x34]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x89
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
jne case.0x4e7adf.10
mov eax, dword [esi + 0x70]
lea ecx, [edx + edx*4]
mov edx, dword [esp + 0x4c]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edx
jmp case.0x4e7adf.10
cmp byte [esp + 0x13], 9
mov ecx, dword [esi + 0x74]
mov eax, dword [esi + 0x78]
jne 0x4e7e5e
mov edi, dword [esp + 0x18]
cmp eax, ecx
jg 0x4e7e33
mov ecx, dword [ebp + 0x10]
push 0
push edx
mov edx, 0x53
mov eax, dword [ecx + 0xc]
mov ecx, esi
push eax
call fcn.00499040
add esp, 0xc
jmp case.0x4e7adf.10
mov ebx, dword [ebp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov edi, dword [ebx + 0xc]
mov ebx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x53
mov dword [eax + ecx*4 + 8], edx
jmp 0x4e7ea1
mov edx, dword [ebp + 0x10]
mov edx, dword [edx + 4]
cmp eax, ecx
jg 0x4e7e7e
push 0
push 0
push edx
mov edx, 0xe
mov ecx, esi
call fcn.00499040
add esp, 0xc
jmp case.0x4e7adf.10
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov esi, dword [esp + 0x48]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 4], edx
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]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x4e7f02
cmp byte [esp + 0x13], 0xb
jne 0x4e7ed6
cmp edx, 1
je 0x4e7ed6
cmp edx, dword [edi + 0x1c]
jle 0x4e7eee
mov dword [edi + 0x1c], edx
mov dword [edi + 0x20], ebx
jmp 0x4e7eee
test ebx, ebx
je 0x4e7eee
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x4e7eee
movzx eax, al
mov dword [edi + eax*4 + 0x98], ebx
inc byte [edi + 0x13]
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x4e7f02
movzx eax, al
mov dword [edi + eax*4 + 0x98], ecx
inc byte [edi + 0x13]
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x38]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4e7f20
push edx
mov edx, esi
call fcn.00499860
add esp, 4
jmp 0x4e7f29
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
mov ebx, dword [ebp + 8]
mov ecx, dword [esi + 0x74]
mov eax, dword [esi + 0x78]
test byte [ebx + 0x20], 1
je 0x4e7f6d
cmp eax, ecx
jg 0x4e7f58
mov edx, dword [esp + 0x40]
mov ecx, esi
push 0
push edx
push dword [esp + 0x24]
mov edx, 3
call fcn.00499040
add esp, 0xc
jmp 0x4e7fc0
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 3
jmp 0x4e7fa0
cmp eax, ecx
jg 0x4e7f8d
mov edx, dword [esp + 0x40]
mov ecx, esi
push 0
push edx
push dword [esp + 0x24]
mov edx, 5
call fcn.00499040
add esp, 0xc
jmp 0x4e7fc0
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 edx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x40]
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebx + 0xc]
test edx, edx
je 0x4e8014
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4e7fe5
push 0
push 0
push edx
mov edx, 0x43
mov ecx, esi
call fcn.00499040
add esp, 0xc
jmp 0x4e8014
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x43
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x30]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4e8037
push edx
mov edx, esi
call fcn.00499860
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
pop edi
pop esi
mov dword [ecx + edx*4], eax
pop ebx
mov esp, ebp
pop ebp
ret