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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
cmp dword [ebp + 8], 0
push ebx
mov ebx, ecx
mov dword [esp + 0x3c], 0
push esi
push edi
mov dword [esp + 0x60], ebx
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x40], eax
jne 0x49d1f6
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx esi, word [ebx + 0x10]
movzx ecx, byte [ebx + 1]
lea edi, [ecx + esi]
cmp edi, 2
jae 0x49d211
lea edx, [edi + 1]
xor eax, eax
mov dword [esp + 0x1c], edx
jmp 0x49d230
mov dword [esp + 0x1c], 3
test edx, edx
jne 0x49d221
xor eax, eax
jmp 0x49d22b
lea eax, [edi - 2]
cmp edx, edi
je 0x49d22b
lea eax, [edx - 1]
mov edi, 2
mov dword [esp + 0x48], eax
sub eax, ecx
mov ecx, dword [ebx + 0x40]
lea edx, [eax + edi]
cmp edx, esi
jne 0x49d249
movzx edx, byte [ebx + 5]
add edx, 8
jmp 0x49d269
movzx eax, word [ebx + 0xc]
add eax, ecx
movzx esi, byte [eax + edx*2 + 1]
movzx eax, byte [eax + edx*2]
mov edx, esi
shl eax, 8
or edx, eax
mov dword [esp + 0x28], esi
movzx eax, word [ebx + 0x12]
and edx, eax
movzx esi, byte [edx + ecx]
add edx, ecx
shl esi, 8
mov dword [esp + 0x28], edx
movzx eax, byte [edx + 1]
or esi, eax
movzx eax, byte [edx + 2]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 3]
shl esi, 8
or esi, eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x50]
mov ebx, esi
push 0
push eax
mov ecx, dword [ecx]
mov edx, ebx
call fcn.00498dd0
mov esi, eax
add esp, 8
mov dword [esp + 0x10], esi
test esi, esi
jne 0x49dde1
mov ecx, dword [esp + 0x50]
cmp ebx, 1
mov esi, dword [ecx + 4]
mov eax, dword [ecx]
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x3c], eax
setne al
dec al
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], ecx
lea ebx, [edi*4]
and al, 0x64
mov dword [esp + ebx + 0x90], esi
mov ecx, esi
mov byte [esi + 5], al
call fcn.0049a3f0
mov edx, eax
mov eax, ebx
mov dword [esp + 0x10], edx
test edx, edx
je 0x49d30f
mov ecx, dword [esi + 0x44]
test ecx, ecx
jne 0x49d421
mov dword [esp + 0x30], edx
test edx, edx
jne 0x49dde8
mov eax, dword [esp + eax + 0x90]
movzx esi, word [eax + 0x10]
movzx eax, byte [eax + 1]
inc eax
add eax, dword [esp + 0x18]
add esi, eax
mov eax, edi
dec edi
mov dword [esp + 0x18], esi
test eax, eax
je 0x49d43f
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x60]
lea ecx, [edx + edi]
movzx eax, word [ebx + 0x18]
cmp ecx, eax
jne 0x49d39d
cmp byte [ebx + 1], 0
je 0x49d39d
mov edx, dword [ebx + 0x14]
mov ecx, ebx
mov dword [esp + edi*4 + 0x64], edx
movzx esi, byte [edx]
movzx eax, byte [edx + 1]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 2]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 3]
shl esi, 8
or esi, eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x24], esi
call fcn.00499e10
movzx eax, ax
mov dword [esp + edi*4 + 0x7c], eax
mov byte [ebx + 1], 0
jmp 0x49d296
movzx eax, byte [ebx + 1]
mov ecx, edx
sub ecx, eax
movzx eax, word [ebx + 0xc]
add eax, dword [ebx + 0x40]
add ecx, edi
movzx edx, byte [eax + ecx*2]
movzx eax, byte [eax + ecx*2 + 1]
mov ecx, ebx
shl edx, 8
or edx, eax
movzx eax, word [ebx + 0x12]
and edx, eax
add edx, dword [ebx + 0x40]
mov dword [esp + edi*4 + 0x64], edx
movzx esi, byte [edx]
movzx eax, byte [edx + 1]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 2]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 3]
shl esi, 8
or esi, eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x24], esi
call fcn.00499e10
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x30]
movzx eax, ax
push ecx
mov dword [esp + edi*4 + 0x80], eax
mov ecx, ebx
push eax
movzx eax, byte [ebx + 1]
sub edx, eax
add edx, edi
call fcn.0049cc70
add esp, 8
jmp 0x49d296
mov esi, dword [ecx + 0x10]
call fcn.00494db0
mov ecx, esi
call fcn.00498d70
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, ebx
jmp 0x49dde8
mov eax, dword [esp + 0x40]
lea edi, [esi + 3]
and edi, 0xfffffffc
movzx edx, word [eax + 0x12]
lea eax, [edx + 0x50]
mov ecx, eax
mov dword [esp + 0x74], eax
imul ecx, dword [esp + 0x1c]
lea eax, [edi + edi*2]
add ecx, edx
mov edx, dword [0x537790]
lea esi, [ecx + eax*2]
cmp dword [0x534fb4], esi
jl 0x49d4a6
test edx, edx
je 0x49d485
push edx
call dword [0x534f60]
mov edx, dword [0x537790]
add esp, 4
cmp dword [0x537788], 0
jne 0x49d521
test edx, edx
je 0x49d4a6
push edx
call dword [0x534f68]
mov edx, dword [0x537790]
add esp, 4
cmp dword [0x534f18], 0
je 0x49d585
test edx, edx
je 0x49d4c1
push edx
call dword [0x534f60]
add esp, 4
mov dword [0x537638], esi
cmp esi, dword [0x53765c]
jle 0x49d4d5
mov dword [0x53765c], esi
lea edx, [esp + 0x18]
mov ecx, esi
call fcn.0048ffe0
mov edx, dword [esp + 0x18]
mov ecx, eax
mov dword [esp + 0x20], edx
test edx, edx
je 0x49d507
mov eax, dword [0x537628]
add eax, ecx
mov dword [0x537628], eax
cmp eax, dword [0x53764c]
jle 0x49d507
mov dword [0x53764c], eax
mov eax, dword [0x537790]
test eax, eax
je 0x49d595
push eax
call dword [0x534f68]
mov edx, dword [esp + 0x1c]
jmp 0x49d592
mov ecx, dword [0x537788]
mov eax, dword [0x5377a8]
dec ecx
mov dword [0x537788], ecx
mov ebx, dword [eax + ecx*4]
mov eax, dword [0x537624]
imul ebx, dword [0x534fb4]
inc eax
mov dword [0x537624], eax
cmp eax, dword [0x537648]
jle 0x49d555
mov dword [0x537648], eax
mov dword [0x537638], esi
cmp esi, dword [0x53765c]
jle 0x49d569
mov dword [0x53765c], esi
test edx, edx
je 0x49d577
push edx
call dword [0x534f68]
add esp, 4
mov edx, dword [0x534fb0]
add edx, ebx
mov dword [esp + 0x20], edx
jmp 0x49d595
push esi
call dword [0x534f30]
mov edx, eax
mov dword [esp + 0x24], eax
add esp, 4
test edx, edx
jne 0x49d5a1
lea ebx, [edx + 7]
jmp 0x49de02
mov ecx, dword [esp + 0x90]
lea edx, [edx + edi*4]
lea ebx, [edx + edi*2]
mov dword [esp + 0x2c], edx
xor edi, edi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x18], edi
movzx eax, byte [ecx + 3]
mov cl, byte [ecx + 4]
shl ax, 2
mov byte [esp + 0x17], cl
movzx eax, ax
movzx ecx, cl
mov dword [esp + 0x6c], eax
mov dword [esp + 0x38], ecx
cmp dword [esp + 0x1c], edi
je 0x49d769
xor ecx, ecx
mov dword [esp + 0x58], ecx
lea esp, [esp]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + edi*4 + 0x90]
mov esi, edx
movzx eax, word [eax + 0x12]
add eax, ecx
mov ecx, 0x13
add ebx, eax
mov eax, dword [esp + 0x40]
mov dword [esp + edi*4 + 0xb4], ebx
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x4c]
mov dword [ebx + 0x40], ecx
movzx eax, word [eax + 0x12]
push eax
push dword [edx + 0x40]
push ecx
call fcn.004e0f70
movzx ecx, word [ebx + 0x10]
add esp, 0xc
movzx eax, byte [ebx + 1]
xor edi, edi
add eax, ecx
mov dword [esp + 0x50], eax
je 0x49d6b3
movzx ecx, byte [ebx + 1]
mov eax, edi
sub ecx, 1
js 0x49d669
lea esi, [ecx*8 + 0x14]
add esi, ebx
movzx edx, word [esi + 4]
cmp edx, eax
jg 0x49d661
je 0x49d6af
dec eax
sub esi, 8
sub ecx, 1
jns 0x49d656
movzx ecx, word [ebx + 0xc]
add ecx, dword [ebx + 0x40]
movzx edx, byte [ecx + eax*2 + 1]
movzx eax, byte [ecx + eax*2]
shl eax, 8
or edx, eax
movzx eax, word [ebx + 0x12]
and edx, eax
add edx, dword [ebx + 0x40]
mov eax, dword [esp + 0x20]
mov ecx, ebx
mov esi, dword [esp + 0x44]
mov dword [eax + esi*4], edx
call fcn.00499e10
mov edx, dword [esp + 0x2c]
inc edi
mov word [edx + esi*2], ax
inc esi
mov dword [esp + 0x44], esi
cmp edi, dword [esp + 0x50]
jl 0x49d642
jmp 0x49d6bb
mov edx, dword [esi]
jmp 0x49d687
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
dec eax
cmp edi, eax
jge 0x49d746
cmp byte [esp + 0x17], 0
jne 0x49d746
movzx eax, word [esp + edi*4 + 0x7c]
mov word [edx + esi*2], ax
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x5c]
push eax
push dword [esp + edi*4 + 0x68]
add esi, edx
add edx, eax
push esi
mov dword [esp + 0x60], edx
call fcn.004e0f70
mov ecx, dword [esp + 0x78]
add esp, 0xc
mov edx, dword [esp + 0x20]
movzx eax, cx
add eax, esi
mov esi, dword [esp + 0x44]
mov dword [edx + esi*4], eax
mov edx, dword [esp + 0x2c]
mov ax, word [edx + esi*2]
sub ax, cx
mov word [edx + esi*2], ax
cmp byte [ebx + 3], 0
movzx ecx, ax
jne 0x49d733
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx + 0x40]
mov ecx, dword [ecx + esi*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x49d741
cmp ecx, 4
jae 0x49d741
mov eax, 4
mov word [edx + esi*2], ax
inc esi
mov dword [esp + 0x44], esi
mov ecx, dword [esp + 0x58]
inc edi
add ecx, dword [esp + 0x74]
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x58], ecx
cmp edi, dword [esp + 0x1c]
jl 0x49d5f0
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x44]
xor ebx, ebx
movzx esi, ax
xor ecx, ecx
mov eax, dword [esp + 0x40]
movzx eax, word [eax + 0x14]
add eax, 0xfffffff4
add esi, eax
xor eax, eax
test edi, edi
jle 0x49d7c0
movzx edx, word [edx + eax*2]
add ecx, 2
add ecx, edx
cmp ecx, esi
jle 0x49d7b5
sub ecx, edx
mov dword [esp + ebx*4 + 0xa0], eax
cmp byte [esp + 0x17], 0
mov dword [esp + ebx*4 + 0x7c], ecx
je 0x49d7a9
dec eax
inc ebx
xor ecx, ecx
cmp ebx, 4
jg 0x49d8d5
inc eax
cmp eax, edi
jge 0x49d7c0
mov edx, dword [esp + 0x2c]
jmp 0x49d787
mov eax, ebx
mov dword [esp + ebx*4 + 0x7c], ecx
mov dword [esp + ebx*4 + 0xa0], edi
inc ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x64], ebx
mov dword [esp + 0x18], eax
test eax, eax
jle 0x49d8c8
mov edi, dword [esp + eax*4 + 0x9c]
lea ecx, [esp + 0x7c]
mov edx, dword [ecx + eax*4]
lea ecx, [ecx + eax*4]
mov ebx, dword [esp + eax*4 + 0x78]
mov dword [esp + 0x9c], ecx
lea ecx, [esp + eax*4 + 0x78]
lea eax, [esp + eax*4 + 0x9c]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], eax
lea eax, [edi - 1]
lea ecx, [eax + eax]
mov dword [esp + 0x5c], edi
sub eax, dword [esp + 0x38]
lea esi, [eax*2 + 2]
lea eax, [edi*2 - 4]
mov dword [esp + 0x58], eax
mov eax, edi
sub eax, dword [esp + 0x38]
lea eax, [eax*2 - 2]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x2c]
add esi, eax
lea edi, [ecx + eax]
test edx, edx
je 0x49d865
movzx eax, word [edi]
mov ecx, ebx
sub ecx, eax
movzx eax, word [esi]
add eax, 2
sub ecx, 2
add eax, edx
cmp eax, ecx
jg 0x49d8a4
movzx eax, word [esi]
mov ecx, 0xfffffffe
add eax, 2
add edx, eax
movzx eax, word [edi]
mov edi, dword [esp + 0x5c]
sub ecx, eax
mov eax, dword [esp + 0x74]
dec edi
add ebx, ecx
mov dword [esp + 0x5c], edi
mov dword [eax], edi
mov eax, dword [esp + 0x58]
mov ecx, eax
mov edi, dword [esp + 0x54]
sub eax, 2
mov esi, edi
mov dword [esp + 0x58], eax
sub edi, 2
mov dword [esp + 0x54], edi
jmp 0x49d842
mov eax, dword [esp + 0x9c]
mov dword [eax], edx
mov eax, dword [esp + 0x78]
mov dword [eax], ebx
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
test eax, eax
jg 0x49d7e2
mov ebx, dword [esp + 0x64]
mov eax, dword [esp + 0x90]
cmp dword [eax + 0x48], 1
ja 0x49d8dc
mov ebx, 0xb
jmp 0x49d946
mov eax, dword [eax + 0x40]
xor edi, edi
mov al, byte [eax]
mov byte [esp + 0x3f], al
movzx eax, al
mov dword [esp + 0x18], eax
test ebx, ebx
jle 0x49da15
mov esi, dword [esp + 0x4c]
lea ebx, [ebx]
cmp edi, dword [esp + 0x1c]
jge 0x49d9d3
mov ecx, dword [esp + edi*4 + 0x90]
mov dword [esp + edi*4 + 0x7c], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + edi*4 + 0x90], 0
mov ecx, dword [ecx + 0x44]
call fcn.004994e0
inc dword [esp + 0x34]
mov ecx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x49da0c
mov ebx, dword [esp + 0x10]
mov eax, dword [0x534fb0]
mov edi, dword [esp + 0x20]
test eax, eax
je 0x49dd5c
cmp edi, eax
jb 0x49dd5c
cmp edi, dword [0x5377a8]
jae 0x49dd5c
sub edi, eax
mov eax, edi
cdq
idiv dword [0x534fb4]
mov esi, eax
mov eax, dword [0x537790]
test eax, eax
je 0x49d98b
push eax
call dword [0x534f60]
add esp, 4
mov eax, dword [0x537788]
mov ecx, dword [0x5377a8]
mov dword [ecx + eax*4], esi
mov eax, dword [0x537624]
inc dword [0x537788]
dec eax
mov dword [0x537624], eax
cmp eax, dword [0x537648]
jle 0x49d9b7
mov dword [0x537648], eax
mov eax, dword [0x537790]
test eax, eax
je 0x49de02
push eax
call dword [0x534f68]
add esp, 4
jmp 0x49de02
push ecx
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x28]
push esi
push eax
lea edx, [esp + 0x44]
call fcn.0049c090
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x10], ecx
mov dword [esp + 0x30], ecx
test ecx, ecx
jne 0x49d942
mov eax, dword [esp + 0x38]
inc dword [esp + 0x34]
mov esi, dword [esp + 0x24]
mov dword [esp + edi*4 + 0x7c], eax
inc edi
cmp edi, ebx
jl 0x49d900
cmp edi, dword [esp + 0x1c]
jge 0x49da81
mov ecx, dword [esp + 0x10]
nop
mov esi, dword [esp + edi*4 + 0x90]
test ecx, ecx
jne 0x49d942
push dword [esi + 0x48]
mov ecx, dword [esi + 0x3c]
mov edx, esi
call fcn.0049c4f0
mov ecx, eax
add esp, 4
mov dword [esp + 0x10], ecx
mov dword [esp + 0x30], ecx
test ecx, ecx
jne 0x49d942
test esi, esi
je 0x49da6f
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x49da6b
mov esi, dword [ecx + 0x10]
call fcn.00494db0
mov ecx, esi
call fcn.00498d70
mov ecx, dword [esp + 0x10]
mov dword [esp + edi*4 + 0x90], 0
inc edi
cmp edi, dword [esp + 0x1c]
jl 0x49da20
xor edi, edi
cmp dword [esp + 0x50], edi
jle 0x49dae4
lea esp, [esp]
mov eax, dword [esp + edi*4 + 0x7c]
mov esi, edi
mov dword [esp + 0x64], eax
mov edx, dword [eax + 0x48]
lea eax, [edi + 1]
mov dword [esp + 0x38], eax
mov ecx, eax
cmp eax, ebx
jge 0x49dadc
lea ebx, [ebx]
mov eax, dword [esp + ecx*4 + 0x7c]
mov eax, dword [eax + 0x48]
cmp eax, edx
jae 0x49dabf
mov esi, ecx
mov edx, eax
inc ecx
cmp ecx, ebx
jl 0x49dab0
cmp esi, edi
jle 0x49dad8
mov eax, dword [esp + esi*4 + 0x7c]
mov dword [esp + edi*4 + 0x7c], eax
mov eax, dword [esp + 0x64]
mov dword [esp + esi*4 + 0x7c], eax
mov eax, dword [esp + 0x38]
mov edi, eax
cmp edi, dword [esp + 0x50]
jl 0x49da90
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x28], 0
mov edx, dword [esp + ebx*4 + 0x78]
mov dword [esp + 0x78], edx
mov ecx, dword [edx + 0x48]
mov eax, ecx
shr eax, 0x18
mov byte [esi], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, ecx
shr eax, 8
mov byte [esi + 2], al
xor eax, eax
mov byte [esi + 3], cl
mov dword [esp + 0x24], eax
test ebx, ebx
jle 0x49dcdf
mov esi, dword [esp + 0x18]
shr esi, 3
mov dword [esp + 0x64], esi
mov eax, dword [esp + eax*4 + 0x7c]
not esi
and esi, 1
mov bl, byte [eax + 5]
mov edi, dword [eax + 0x3c]
lea ecx, [esi*4 + 8]
movzx edx, bl
add edx, dword [eax + 0x40]
mov al, byte [esp + 0x3f]
mov byte [edx], al
mov dword [edx + 1], 0
mov byte [edx + 7], 0
movzx eax, bl
add cx, ax
movzx eax, byte [edi + 0x15]
mov byte [edx + 5], al
movzx eax, byte [edi + 0x14]
mov byte [edx + 6], al
mov edx, dword [esp + 0x24]
movzx eax, word [edi + 0x14]
movzx esi, cx
sub ax, si
mov ecx, dword [esp + edx*4 + 0x7c]
mov edx, dword [esp + 0x18]
mov word [ecx + 0xe], ax
call fcn.0049a380
mov byte [ecx + 5], bl
mov ebx, dword [esp + 0x24]
mov word [ecx + 0xc], si
mov byte [ecx + 1], 0
movzx eax, word [edi + 0x12]
mov esi, dword [esp + ebx*4 + 0xa0]
dec ax
mov edi, dword [esp + ebx*4 + 0x7c]
mov edx, esi
mov word [ecx + 0x12], ax
xor eax, eax
mov word [ecx + 0x10], ax
mov eax, dword [esp + 0x2c]
mov byte [ecx], 1
mov ecx, dword [esp + 0x28]
sub edx, ecx
lea eax, [eax + ecx*2]
push eax
mov eax, dword [esp + 0x24]
lea eax, [eax + ecx*4]
mov ecx, edi
push eax
call fcn.0049cf00
mov ebx, esi
add esp, 8
mov dword [esp + 0x28], ebx
cmp ebx, dword [esp + 0x44]
jge 0x49dcc4
mov eax, dword [esp + 0x20]
mov esi, dword [eax + ebx*4]
mov eax, dword [esp + 0x2c]
movzx ecx, word [eax + ebx*2]
mov ebx, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
add eax, dword [ebp + 8]
movzx edx, bx
mov ebx, dword [esp + 0x28]
add edx, ecx
cmp byte [edi + 3], 0
mov dword [esp + 0x4c], eax
jne 0x49dc28
mov ecx, dword [edi + 0x40]
mov eax, dword [esi]
mov dword [ecx + 8], eax
jmp 0x49dc85
cmp byte [esp + 0x17], 0
je 0x49dc6f
lea eax, [esp + 0xc0]
dec ebx
push eax
mov eax, dword [esp + 0x24]
mov ecx, edi
mov edx, dword [eax + ebx*4]
call fcn.00499ce0
mov eax, dword [esp + 0x50]
add esp, 4
mov esi, eax
push dword [esp + 0xcc]
lea ecx, [eax + 4]
push dword [esp + 0xcc]
call fcn.00492cf0
add esp, 8
lea edx, [eax + 4]
xor eax, eax
jmp 0x49dc89
sub esi, 4
cmp ecx, 4
jne 0x49dc89
mov ecx, dword [esp + 0x60]
mov edx, esi
call fcn.00499e10
movzx edx, ax
mov eax, dword [esp + 0x4c]
add dword [esp + 0x70], edx
lea ecx, [esp + 0x30]
push ecx
push dword [edi + 0x48]
mov ecx, dword [esp + 0x68]
push eax
push edx
push esi
mov esi, dword [esp + 0x5c]
mov edx, esi
call fcn.0049cd50
mov ecx, dword [esp + 0x44]
add esp, 0x14
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x49d942
inc ebx
inc esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x48], esi
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x64]
inc eax
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x34]
jl 0x49db32
mov edx, dword [esp + 0x78]
test byte [esp + 0x18], 8
jne 0x49dcfd
mov eax, dword [esp + 0x1c]
mov ecx, dword [edx + 0x40]
mov eax, dword [esp + eax*4 + 0xb0]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
cmp dword [ebp + 0xc], 0
je 0x49d942
mov ecx, dword [esp + 0x60]
cmp word [ecx + 0x10], 0
jne 0x49d942
mov esi, dword [esp + 0x7c]
movzx eax, byte [ecx + 5]
cmp ax, word [esi + 0xe]
ja 0x49d942
lea eax, [esp + 0x30]
mov edx, ecx
push eax
mov ecx, esi
call fcn.0049d110
mov ebx, dword [esp + 0x34]
add esp, 4
test ebx, ebx
jne 0x49d946
push dword [esi + 0x48]
mov ecx, dword [esi + 0x3c]
mov edx, esi
call fcn.0049c4f0
add esp, 4
mov ebx, eax
jmp 0x49d946
cmp dword [0x534f18], 0
push edi
je 0x49ddd6
call dword [0x534f3c]
mov ecx, dword [0x537790]
add esp, 4
mov esi, eax
test ecx, ecx
je 0x49dd85
push ecx
call dword [0x534f60]
add esp, 4
mov eax, dword [0x537628]
sub eax, esi
mov dword [0x537628], eax
cmp eax, dword [0x53764c]
jle 0x49dd9e
mov dword [0x53764c], eax
mov eax, dword [0x537618]
sub eax, esi
mov dword [0x537618], eax
cmp eax, dword [0x53763c]
jle 0x49ddb7
mov dword [0x53763c], eax
push edi
call dword [0x534f34]
mov eax, dword [0x537790]
add esp, 4
test eax, eax
je 0x49de02
push eax
call dword [0x534f68]
add esp, 4
jmp 0x49de02
call dword [0x534f34]
add esp, 4
jmp 0x49de02
lea eax, [edi*4]
add eax, 4
push eax
lea eax, [esp + 0x94]
push 0
push eax
call fcn.004e14f0
mov ebx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [esp + 0x1c]
xor edi, edi
test eax, eax
je 0x49de3a
lea esp, [esp]
mov ecx, dword [esp + edi*4 + 0x90]
test ecx, ecx
je 0x49de35
mov ecx, dword [ecx + 0x44]
test ecx, ecx
je 0x49de35
mov esi, dword [ecx + 0x10]
call fcn.00494db0
mov ecx, esi
call fcn.00498d70
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jl 0x49de10
mov eax, dword [esp + 0x34]
xor edi, edi
test eax, eax
jle 0x49de6b
mov ecx, dword [esp + edi*4 + 0x7c]
test ecx, ecx
je 0x49de66
mov ecx, dword [ecx + 0x44]
test ecx, ecx
je 0x49de66
mov esi, dword [ecx + 0x10]
call fcn.00494db0
mov ecx, esi
call fcn.00498d70
mov eax, dword [esp + 0x34]
inc edi
cmp edi, eax
jl 0x49de44
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret