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

Disassembly:
push 0xffffffffffffffff
push 0x5cbb33
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004df630
mov edi, dword [esp + 0xec]
mov ecx, esi
push edi
call fcn.004e4710
mov eax, dword [esi]
lea ecx, [esp + 0x48]
push ecx
mov ecx, esi
call dword [eax + 0x24]
mov edx, dword [edi]
lea ebx, [esi + 0x2e80]
push 1
push ebx
mov ecx, edi
call dword [edx + 0x78]
mov dl, byte [esi + 0x31c0]
mov ecx, dword [esi + 0x31e0]
test dl, dl
mov eax, dword [ecx]
sete dl
push edx
push ebx
call dword [eax + 0x78]
mov eax, dword [esp + 0xf4]
mov ecx, dword [esi + 0x2d78]
cdq
idiv ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xfc]
dec eax
cdq
idiv ecx
mov ecx, dword [esi + 0x3294]
lea ebx, [eax + ecx + 1]
mov eax, dword [esi + 0x336c]
lea ecx, [eax + 8]
call fcn.004f7120
lea ecx, [esi + 0x3320]
mov ebp, eax
call fcn.00537cd0
cmp ebx, eax
jge 0x4e4a5c
inc ebx
lea ecx, [esi + 0x3320]
push ebx
call fcn.00537d30
mov ecx, dword [esi + 0x336c]
push eax
call fcn.004f2fc0
mov ebp, eax
mov eax, dword [esi + 0x2e48]
mov ecx, dword [esi + 0x31cc]
sub eax, ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], eax
mov al, byte [esi + 0x31c9]
test al, al
jne 0x4e4a8f
mov eax, dword [esi + 0x2d78]
imul eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x2d78]
mov ecx, dword [esi + 0x336c]
imul eax, dword [esp + 0x20]
push ebp
mov dword [esp + 0x48], eax
call fcn.004f5430
mov ecx, dword [esi + 0x32b8]
mov al, byte [esi + 0x32a0]
cmp ecx, 2
sete byte [esp + 0x13]
test al, al
je 0x4e4ad0
mov ecx, esi
call fcn.004e6fd0
mov byte [esi + 0x32a0], 0
mov edx, dword [esi + 0x3294]
lea ecx, [esi + 0x3320]
push edx
call fcn.00537d30
sub eax, 5
jns 0x4e4aea
or eax, 0xffffffff
push eax
push 0
mov ecx, esi
call fcn.004e1800
test al, al
je 0x4e4b0f
mov ecx, esi
call fcn.004e0490
test al, al
jne 0x4e566b
push edi
mov ecx, esi
call fcn.004e4710
mov ecx, dword [esi + 0x31e8]
mov eax, dword [ecx]
call dword [eax + 0x14]
test al, al
je 0x4e566b
lea ecx, [esp + 0xf0]
push ecx
push edi
mov ecx, esi
call fcn.004e1f10
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x50]
mov ebp, dword [esi + 0x2e0c]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x9c], edx
mov edx, eax
sub eax, ebp
cmp dword [esp + 0xf8], eax
jle 0x4e4b9a
cmp dword [esp + 0xf0], edx
jge 0x4e4b9a
cmp dword [esp + 0xfc], ecx
jle 0x4e4b9a
cmp dword [esp + 0xf4], ebx
jge 0x4e4b9a
mov ebp, dword [esi + 0xc24]
mov ebx, dword [edi]
push ebp
sub esp, 0x10
mov ebp, esp
mov dword [ebp], eax
mov eax, dword [esp + 0x68]
mov dword [ebp + 4], ecx
mov ecx, edi
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], eax
call dword [ebx + 0x38]
cmp dword [esi + 0x32b8], 2
jne 0x4e4be1
mov eax, dword [esi + 0x3348]
test eax, eax
je 0x4e566b
mov al, byte [esp + 0x13]
test al, al
je 0x4e566b
mov eax, dword [esi + 0x3294]
push 0x7ffffff
push eax
lea ecx, [esi + 0x3320]
call fcn.00537d30
push eax
mov ecx, esi
call fcn.004e1700
jmp 0x4e566b
mov ecx, dword [esp + 0xf8]
mov eax, dword [esi + 0x2e48]
cmp ecx, eax
jle 0x4e566b
mov al, byte [esi + 0x31c9]
mov ebx, edi
test al, al
mov dword [esp + 0x14], ebx
je 0x4e4c1f
mov ebx, dword [esi + 0x31e0]
mov ecx, ebx
mov dword [esp + 0x14], ebx
mov edx, dword [ebx]
call dword [edx + 0x14]
test al, al
je 0x4e566b
mov ebp, dword [ebx]
mov ecx, esi
call fcn.004eb9c0
push eax
mov ecx, ebx
call dword [ebp + 0x84]
mov ebp, dword [ebx]
mov ecx, esi
call fcn.004eb9e0
push eax
mov ecx, ebx
call dword [ebp + 0x88]
mov ebx, dword [esi + 0x3294]
mov ebp, dword [esp + 0x20]
mov ecx, dword [esi + 0x326c]
mov eax, dword [esi + 0x3280]
add ebx, ebp
mov dword [esp + 0x58], eax
test ecx, ecx
mov dword [esp + 0x20], ebx
jl 0x4e4c6d
mov eax, ecx
mov dword [esp + 0x58], eax
mov ecx, dword [esi + 0x336c]
push eax
call fcn.004f3030
mov ecx, dword [esi + 0x2e48]
mov edx, dword [esi + 0x2e0c]
sub esp, 0x10
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x58]
mov ebp, esp
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x60]
mov dword [ebp], ecx
mov ecx, dword [esp + 0x5c]
sub eax, edx
mov edx, dword [edi]
mov dword [ebp + 4], ecx
mov ecx, edi
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x64]
mov dword [ebp + 0xc], eax
call dword [edx + 0x7c]
lea eax, [esi + 0x31f4]
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x3c], eax
xor eax, eax
mov dword [esp + 0x40], eax
mov ecx, esi
mov dword [esp + 0xe4], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x70], esi
mov byte [esp + 0x78], 1
call fcn.004e0770
mov ebp, eax
mov ecx, esi
mov dword [esp + 0x7c], ebp
call fcn.004e0790
mov ecx, dword [esi + 0x336c]
push ebp
mov dword [esp + 0x84], eax
call fcn.004f3030
mov ecx, dword [esp + 0x80]
mov ebp, eax
push ecx
mov ecx, dword [esi + 0x336c]
mov dword [esp + 0x90], ebp
call fcn.004f3030
mov edx, dword [esi + 0x32f4]
mov dword [esp + 0x90], eax
mov eax, dword [esi + 0x32f0]
push edx
push eax
call fcn.004f21b0
mov ecx, dword [esi + 0x32f4]
mov edx, dword [esi + 0x32f0]
push ecx
push edx
mov dword [esp + 0x94], eax
call fcn.004f21c0
add esp, 0x10
mov dword [esp + 0x88], eax
mov dword [esp + 0x74], ebp
lea ecx, [esi + 0x3320]
mov byte [esp + 0xe4], 1
call fcn.00537cd0
cmp ebx, eax
jge 0x4e559a
jmp 0x4e4d9d
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0xec]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0xfc]
cmp eax, ecx
jge 0x4e559a
lea ebp, [esi + 0x3320]
push ebx
mov ecx, ebp
call fcn.00537d30
mov edi, eax
mov ecx, ebp
push edi
call fcn.00537cf0
sub ebx, eax
mov eax, dword [esp + 0x64]
cmp edi, eax
mov dword [esp + 0x6c], ebx
je 0x4e4e22
mov ecx, dword [esp + 0x40]
mov ebp, dword [esp + 0x3c]
push ecx
mov ecx, ebp
call fcn.004df030
push edi
mov ecx, esi
mov dword [esp + 0x44], 0
call fcn.004e2620
push 0
mov ecx, ebp
mov ebx, eax
call fcn.004df030
mov edx, dword [esi + 0x3350]
mov ecx, dword [esp + 0x14]
push edx
lea eax, [esi + 0x14]
push ebx
push eax
push ecx
push edi
mov ecx, esi
mov dword [esp + 0x54], ebx
call fcn.004e26a0
mov dword [esp + 0x64], edi
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4e554d
cmp dword [esi + 0x32e8], 1
jne 0x4e4e51
mov ecx, esi
call fcn.004e0770
mov ebp, dword [esp + 0x40]
mov ecx, esi
mov dword [ebp + 0x28], eax
call fcn.004e0790
jmp 0x4e4f47
mov ecx, dword [esp + 0x8c]
cmp edi, ecx
jl 0x4e4f2c
mov ebp, dword [esp + 0x90]
cmp edi, ebp
jg 0x4e4f2c
mov eax, dword [esi + 0x32e8]
cmp eax, 2
jne 0x4e4eaf
mov edx, dword [esp + 0x84]
mov ecx, esi
push edx
push edi
call fcn.004e02c0
mov ebx, eax
mov eax, dword [esp + 0x88]
push eax
push edi
mov ecx, esi
mov dword [esp + 0x9c], ebx
call fcn.004e02c0
mov dword [esp + 0x98], eax
jmp 0x4e4f40
cmp eax, 3
jne 0x4e4ee1
mov ecx, dword [esi + 0x336c]
push edi
call fcn.004f2fc0
lea ecx, [edi + 1]
mov ebx, eax
push ecx
mov ecx, dword [esi + 0x336c]
mov dword [esp + 0x98], ebx
call fcn.004f2fc0
mov dword [esp + 0x98], eax
jmp 0x4e4f40
cmp edi, ecx
jne 0x4e4eeb
mov ebx, dword [esp + 0x7c]
jmp 0x4e4ef9
mov ecx, dword [esi + 0x336c]
push edi
call fcn.004f2fc0
mov ebx, eax
cmp edi, ebp
mov dword [esp + 0x94], ebx
jne 0x4e4f14
mov eax, dword [esp + 0x80]
mov dword [esp + 0x98], eax
jmp 0x4e4f40
mov ecx, dword [esi + 0x336c]
lea edx, [edi + 1]
push edx
call fcn.004f2fc0
mov dword [esp + 0x98], eax
jmp 0x4e4f40
or eax, 0xffffffff
or ebx, 0xffffffff
mov dword [esp + 0x98], eax
mov dword [esp + 0x94], ebx
mov ebp, dword [esp + 0x40]
mov dword [ebp + 0x28], ebx
mov ecx, dword [esp + 0x60]
mov dword [ebp + 0x2c], eax
cmp edi, ecx
sete al
mov byte [ebp + 0x30], al
mov al, byte [esi + 0x31c1]
test al, al
je 0x4e4f6d
or eax, 0xffffffff
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x2c], eax
mov byte [ebp + 0x30], 0
lea ecx, [ebp + 0x50]
lea edx, [ebp + 0x4c]
push ecx
push edx
mov ecx, esi
call fcn.004ea9a0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov ebx, dword [esi + 0x2d78]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x30], ecx
lea ecx, [edi + 1]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x336c]
mov dword [esp + 0x38], edx
add ebx, eax
call fcn.004f2fc0
mov ecx, dword [esi + 0x336c]
push edi
mov dword [esp + 0x20], eax
call fcn.004f2fc0
mov edx, dword [esi + 0x32b0]
lea ecx, [esi + 0x32a4]
imul edx, dword [esi + 0x2d88]
push edx
mov dl, byte [esi + 0x32ac]
push edx
push ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x74], eax
push ecx
push eax
mov ecx, ebp
call fcn.004deb90
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x2c]
push edx
push ebp
mov edx, dword [esp + 0x20]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x30]
mov dword [eax + 8], ecx
lea ecx, [esi + 0x14]
mov dword [eax + 0xc], ebx
mov eax, dword [esp + 0x3c]
push eax
push edi
push ecx
push edx
mov ecx, esi
call fcn.004e33a0
mov ecx, dword [esp + 0x68]
lea eax, [esi + 0x32a4]
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
mov ecx, ebp
call fcn.004dec30
push edi
lea ecx, [esi + 0x3320]
call fcn.00538170
mov ecx, dword [esi + 0x331c]
mov byte [esp + 0x13], al
test cl, 1
jne 0x4e5153
test al, al
je 0x4e5073
test cl, 2
jne 0x4e5078
jmp 0x4e50dc
test cl, 4
je 0x4e50ed
mov eax, dword [esi + 0x336c]
push edi
lea ecx, [eax + 8]
call fcn.004f7b10
test ah, 0x20
je 0x4e50d4
mov edx, dword [esp + 0x18]
mov dword [esp + 0xa8], ebx
mov eax, dword [esp + 0x2c]
lea ecx, [edx + 1]
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0x14]
mov ebp, dword [ecx]
mov ecx, dword [esi + 0xc1c]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0xbc]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0x28]
call dword [ebp + 0x38]
mov al, byte [esp + 0x13]
test al, al
je 0x4e50ed
test byte [esi + 0x331c], 8
jne 0x4e50fa
test al, al
jne 0x4e531e
test byte [esi + 0x331c], 0x10
je 0x4e531e
mov eax, dword [esi + 0x336c]
push edi
lea ecx, [eax + 8]
call fcn.004f7b10
test ah, 0x20
je 0x4e531e
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xd0], ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
mov ebp, dword [ecx]
mov ecx, dword [esi + 0xc1c]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
lea eax, [ebx - 1]
mov dword [ecx + 4], eax
mov eax, ebx
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x28]
call dword [ebp + 0x38]
jmp 0x4e531e
mov eax, dword [esi + 0x336c]
push edi
lea ecx, [eax + 8]
call fcn.004f7b10
mov ebp, eax
mov eax, dword [esi + 0x336c]
lea ecx, [edi - 1]
and ebp, 0xfff
push ecx
lea ecx, [eax + 8]
sub ebp, 0x400
call fcn.004f7b10
and eax, 0xfff
push edi
sub eax, 0x400
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0x336c]
lea ecx, [eax + 8]
call fcn.004f7b10
mov ecx, dword [esp + 0x5c]
and eax, 0xf000f000
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x336c]
cmp ecx, ebp
mov edx, dword [eax + 0x4b0]
mov dword [esp + 0x24], edx
jl 0x4e51da
mov ecx, dword [esp + 0x1c]
test ch, 0x40
je 0x4e522e
lea ecx, [edi - 1]
push ecx
lea ecx, [eax + 8]
call fcn.004f7b10
test ah, 0x80
jne 0x4e522e
mov ecx, dword [esi + 0x2d88]
mov edx, dword [esp + 0x28]
imul ecx, dword [esp + 0x24]
imul ecx, ebp
mov eax, dword [esp + 0x2c]
add ecx, edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0xd8], ebx
lea eax, [eax + ecx - 1]
mov ecx, dword [esi + 0xc1c]
push ecx
mov edx, dword [edx]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x2c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x2c]
inc eax
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x28]
call dword [edx + 0x38]
mov eax, dword [esp + 0x1c]
test ah, 0x80
jne 0x4e5248
mov al, byte [esp + 0x13]
test al, al
jne 0x4e529c
test byte [esi + 0x331c], 0x10
je 0x4e529c
mov edx, dword [esi + 0x2d88]
mov ecx, dword [esp + 0x18]
imul edx, dword [esp + 0x24]
imul edx, ebp
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xd0], ecx
mov ecx, dword [esp + 0x28]
add edx, ecx
mov ecx, dword [esp + 0x14]
lea eax, [eax + edx - 1]
mov edx, dword [ecx]
mov ecx, dword [esi + 0xc1c]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
lea eax, [ebx - 1]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 8], eax
mov eax, ebx
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x28]
call dword [edx + 0x38]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
test ebp, ebp
mov dword [esp + 0xac], edx
mov dword [esp + 0xb4], eax
mov dword [esp + 0x1c], 0
jl 0x4e531e
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
imul ecx, dword [esi + 0x2d88]
imul ecx, dword [esp + 0x24]
lea eax, [ecx + edx - 1]
mov edx, dword [esp + 0x14]
lea ecx, [eax + 1]
mov edx, dword [edx]
mov dword [esp + 0xb4], ecx
mov ecx, dword [esi + 0xc1c]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x2c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xc8]
mov dword [ecx + 8], eax
mov eax, ebx
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x28]
call dword [edx + 0x38]
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, ebp
mov dword [esp + 0x1c], eax
jle 0x4e52be
cmp edi, dword [esp + 0x60]
jne 0x4e54ff
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x68]
mov ecx, dword [ebp + 0x14]
sub eax, edi
push ecx
push eax
mov dword [esp + 0x64], eax
call fcn.004f21b0
mov edx, dword [esp + 0x74]
add esp, 8
test edx, edx
mov dword [esp + 0x24], eax
jg 0x4e5357
xor ecx, ecx
jmp 0x4e536b
cmp edx, dword [ebp + 0x58]
jge 0x4e5368
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x4e5368
mov ecx, dword [ecx + edx*4]
jmp 0x4e536b
mov ecx, dword [ebp + 0x18]
cmp eax, ecx
jl 0x4e54ff
lea eax, [edx + 1]
test eax, eax
jg 0x4e537e
xor eax, eax
jmp 0x4e5392
cmp eax, dword [ebp + 0x58]
jge 0x4e538f
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x4e538f
mov eax, dword [ecx + eax*4]
jmp 0x4e5392
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
jl 0x4e53a3
cmp ecx, dword [ebp + 0x18]
jne 0x4e54ff
test edx, edx
jg 0x4e53ab
xor ecx, ecx
jmp 0x4e53bf
cmp edx, dword [ebp + 0x58]
jge 0x4e53bc
mov eax, dword [ebp + 4]
test eax, eax
je 0x4e53bc
mov ecx, dword [eax + edx*4]
jmp 0x4e53bf
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x44]
mov edi, dword [esp + 0x24]
mov edi, dword [eax + edi*4]
sub edi, dword [eax + ecx*4]
mov eax, dword [esp + 0x28]
add edi, eax
mov eax, dword [esi + 0x3368]
test eax, eax
je 0x4e5403
test edx, edx
jle 0x4e5403
cmp edx, dword [ebp + 0x58]
jge 0x4e53f1
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x4e53f1
mov ecx, dword [ecx + edx*4]
jmp 0x4e53f4
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x4e5403
mov edx, dword [esi + 0x2d84]
imul edx, eax
add edi, edx
mov eax, dword [esi + 0x336c]
lea ecx, [eax + 8]
call fcn.004f7120
cmp dword [esp + 0x58], eax
jne 0x4e541f
mov ecx, dword [esi + 0x2d84]
jmp 0x4e5443
mov eax, dword [esp + 0x5c]
mov ecx, dword [ebp + 0x18]
cmp eax, ecx
jl 0x4e5432
mov ecx, dword [esi + 0x2d84]
jmp 0x4e5443
mov ebp, dword [ebp + 0x44]
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + eax*4 + 4]
mov edx, dword [ebp + eax*4]
sub ecx, edx
cmp ecx, 3
jge 0x4e544d
mov ecx, 3
mov al, byte [esi + 0x321c]
test al, al
je 0x4e5461
mov al, byte [esi + 0x321d]
test al, al
jne 0x4e546f
mov eax, dword [esi + 0x326c]
test eax, eax
jl 0x4e54ff
test edi, edi
jl 0x4e54ff
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0xc4], eax
xor eax, eax
mov dword [esp + 0xbc], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0xc8], ebx
test ebp, ebp
jle 0x4e54b0
cmp dword [esi + 0x2e78], 1
jle 0x4e54b0
mov eax, 1
mov ebp, dword [esi + 0x326c]
test ebp, ebp
jge 0x4e54cd
cmp byte [esi + 0x31c2], 0
je 0x4e54cd
inc edi
lea edx, [ebx - 2]
lea eax, [edi + ecx - 1]
jmp 0x4e54d7
sub edi, eax
mov eax, dword [esi + 0x2e78]
add eax, edi
mov ebp, dword [esi + 0x2e5c]
mov ecx, dword [esp + 0x14]
push ebp
sub esp, 0x10
mov ebx, dword [ecx]
mov ebp, esp
mov dword [ebp], edi
mov dword [ebp + 4], edx
mov edx, dword [esp + 0xdc]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], edx
call dword [ebx + 0x38]
mov al, byte [esi + 0x31c9]
test al, al
je 0x4e5557
mov ecx, dword [esp + 0xec]
mov edx, dword [esi + 0x2e48]
xor ebx, ebx
mov edi, dword [esp + 0x44]
mov ebp, dword [ecx]
mov ecx, dword [esi + 0x31e0]
push ecx
push ebx
push edx
mov ecx, dword [esp + 0x5c]
sub esp, 0x10
mov eax, dword [esi + 0x2d78]
mov ebx, esp
add eax, edi
mov dword [ebx], edx
mov dword [ebx + 4], edi
mov dword [ebx + 8], ecx
mov ecx, dword [esp + 0x108]
mov dword [ebx + 0xc], eax
call dword [ebp + 0x44]
mov al, byte [esi + 0x31c9]
test al, al
jne 0x4e5567
mov edx, dword [esi + 0x2d78]
mov eax, dword [esp + 0x18]
add eax, edx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x2d78]
mov edi, dword [esp + 0x44]
add edi, eax
lea ecx, [esi + 0x3320]
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x20]
inc edi
mov dword [esp + 0x20], edi
call fcn.00537cd0
cmp edi, eax
jl 0x4e4d92
mov edi, dword [esp + 0xec]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x2e48]
mov dword [esp + 0x2c], ecx
lea ecx, [esi + 0x3320]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
call fcn.00537cd0
mov ecx, dword [esi + 0x3294]
mov ebx, eax
sub ebx, ecx
imul ebx, dword [esi + 0x2d78]
cmp ebx, ebp
jge 0x4e564b
mov eax, dword [esi + 0xc24]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x30]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], ebp
mov ecx, edi
call dword [edx + 0x38]
cmp dword [esi + 0x2e74], 1
jne 0x4e564b
mov eax, dword [esi + 0x32b4]
mov ecx, dword [esp + 0x28]
imul eax, dword [esi + 0x2d88]
add eax, ecx
mov ecx, dword [esi + 0x2e70]
push ecx
sub esp, 0x10
lea edx, [eax + 1]
mov ecx, esp
mov dword [esp + 0x48], edx
mov edx, dword [edi]
mov dword [ecx], eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], ebp
mov ecx, edi
call dword [edx + 0x38]
mov ecx, esi
call fcn.004e7020
mov ecx, dword [esp + 0x40]
mov dword [esp + 0xe4], 0xffffffff
push ecx
mov ecx, dword [esp + 0x40]
call fcn.004df030
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xd8
ret 0x14