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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x14]
test eax, eax
push esi
push edi
mov byte [esp + 0x13], 0
mov dword [esp + 0x18], ecx
je 0x49aece
cmp dword [eax], 0x40
jl 0x49aece
mov dword [ebp + 0x14], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
cmp eax, 0x40
jle 0x49aef2
push 0x40
push str.at_most__d_tables_in_a_join
mov esi, ebx
call fcn.0041cbf0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test byte [ebp + 0x20], 0x20
je 0x49af03
mov eax, 1
mov dword [esp + 0x1c], eax
jmp 0x49af07
mov dword [esp + 0x1c], eax
lea edi, [eax + eax*2]
shl edi, 5
lea eax, [edi + 0x2ff]
and eax, 0xfffffff8
mov dword [esp + 0x3c], eax
add eax, 0x50
push 0
push eax
call fcn.00419650
mov esi, eax
mov eax, dword [esp + 0x20]
add esp, 8
cmp byte [eax + 0x57], 0
je 0x49af50
test esi, esi
je 0x49b221
mov ecx, dword [esp + 0x18]
mov eax, esi
call fcn.00419270
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 4], ecx
mov cl, byte [esp + 0x1c]
mov dword [esi + 8], edx
mov dx, word [ebp + 0x20]
mov dword [esi], ebx
mov byte [esi + 0x2c], cl
or eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], eax
add dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x38]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov ax, word [ebp + 0x24]
mov word [esi + 0x2a], ax
mov word [esi + 0x28], dx
mov ecx, dword [ebx + 0x8c]
mov edx, dword [ebp + 0x1c]
xor eax, eax
mov dword [esi + 0x24], ecx
mov dword [esi + 0x10], edx
mov dword [esi + 0x2d], eax
mov dword [esi + 0x31], eax
mov dword [esi + 0x35], eax
mov dword [esi + 0x39], eax
mov dword [esi + 0x3d], eax
mov dword [esi + 0x41], eax
mov dword [esi + 0x45], eax
mov dword [esi + 0x49], eax
mov word [esi + 0x4d], ax
add edi, 0x50
push edi
mov byte [esi + 0x4f], al
lea eax, [esi + 0x2f8]
push 0
push eax
call sub.ntdll.dll_memset
mov eax, dword [esp + 0x48]
mov dword [esi + 0x1f4], 0
mov dword [esi + 0x1f8], 0xffffff9d
mov dword [esp + 0x54], esi
lea edi, [esi + 0x50]
mov dword [esp + 0x58], edi
add eax, esi
mov dword [esp + 0x5c], eax
lea ecx, [eax + 0x40]
mov dword [eax + 0x38], ecx
xor ecx, ecx
mov word [eax + 0x30], cx
mov word [eax + 0x34], 3
mov dword [eax + 0x2c], ecx
mov eax, dword [ebp + 0x10]
add esp, 0xc
push 0x2c
push eax
lea edx, [edi + 0x20]
push edi
mov dword [edi], esi
mov byte [edi + 9], cl
mov dword [edi + 4], ecx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x14], ecx
mov dword [edi + 0x10], 8
mov dword [edi + 0x18], edx
call fcn.00493f10
add esp, 0xc
cmp dword [esp + 0x1c], 0
jne 0x49b078
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x49b050
mov cl, byte [eax]
mov byte [esi + 0x2d], cl
test dword [ebp + 0x20], 0x100
je 0x49b067
mov edx, dword [esp + 0x18]
test byte [edx + 0x50], 0x10
jne 0x49b067
mov byte [esi + 0x2f], 1
push str.SCAN_CONSTANT_ROW
push 0
call fcn.0043c7b0
add esp, 8
jmp 0x49b0cc
mov eax, dword [ebp + 0xc]
add eax, 8
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], eax
lea ebx, [ebx]
mov eax, dword [esp + 0x34]
mov ecx, dword [esi + 0x1f4]
mov edx, dword [eax + 0x2c]
push edi
mov dword [esi + ecx*4 + 0x1f8], edx
add dword [esi + 0x1f4], 1
push ebx
call fcn.004943b0
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp + 0xc]
add dword [esp + 0x3c], 0x48
add eax, 1
add esp, 8
cmp eax, dword [ecx]
mov dword [esp + 0x28], eax
jl 0x49b090
mov ebx, dword [ebp + 0xc]
lea edi, [esi + 0x50]
call fcn.00494380
cmp dword [ebp + 0x1c], 0
je 0x49b0f3
mov eax, dword [ebp + 0x1c]
cmp dword [eax + 0x3c], 0
je 0x49b0f3
push eax
lea eax, [esi + 0x50]
push eax
call fcn.00494050
add esp, 8
mov edx, dword [ebp + 8]
xor ebx, ebx
cmp dword [edx + 0x24], ebx
jne 0x49b20a
mov eax, dword [esp + 0x4c]
cmp dword [eax + 0x14], ebx
jle 0x49b161
mov dword [esp + 0x34], ebx
mov edi, edi
mov edi, dword [eax + 0x18]
add edi, dword [esp + 0x34]
test byte [edi + 0xa], 2
jne 0x49b150
mov eax, dword [edi + 0x28]
or eax, dword [edi + 0x2c]
jne 0x49b150
cmp dword [esp + 0x1c], eax
je 0x49b136
mov ecx, dword [edi]
call fcn.0049a8d0
test eax, eax
je 0x49b150
mov ecx, dword [esi + 0x20]
mov edx, dword [edi]
mov eax, dword [ebp + 8]
push 0x10
push ecx
push edx
push eax
call fcn.004589a0
add esp, 0x10
or word [edi + 0xa], 4
mov eax, dword [esp + 0x4c]
add dword [esp + 0x34], 0x30
add ebx, 1
cmp ebx, dword [eax + 0x14]
jl 0x49b110
mov ebx, dword [ebp + 0x20]
test ebx, 0x100
je 0x49b1b7
mov ecx, dword [esp + 0x18]
test byte [ecx + 0x50], 0x10
je 0x49b187
and ebx, 0xfeff
and word [esi + 0x28], 0xfeff
mov dword [ebp + 0x20], ebx
jmp 0x49b1b7
mov edi, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
push edi
lea eax, [esi + 0x50]
push eax
mov eax, dword [ebp + 0xc]
push edx
call fcn.00494c80
add esp, 0xc
test eax, eax
je 0x49b1a8
mov byte [esi + 0x2f], 1
jmp 0x49b1b7
cmp dword [ebp + 0x14], 0
jne 0x49b1b7
or word [esi + 0x28], 0x80
mov dword [esi + 8], edi
cmp dword [esp + 0x1c], 1
jne 0x49b1cb
lea ecx, [esp + 0x48]
call fcn.0049a650
test eax, eax
jne 0x49b22a
lea eax, [esp + 0x48]
call fcn.004990b0
test eax, eax
jne 0x49b20a
push eax
push esi
call fcn.00499cd0
mov edi, dword [esp + 0x20]
add esp, 8
cmp byte [edi + 0x57], 0
jne 0x49b20a
cmp dword [esi + 8], 0
je 0x49b234
movzx eax, word [esi + 0x34]
add ax, 1
push eax
push esi
call fcn.00499cd0
add esp, 8
cmp byte [edi + 0x57], 0
je 0x49b22e
mov edx, dword [esi + 0x24]
mov eax, dword [ebp + 8]
mov edi, dword [esp + 0x18]
mov ebx, esi
mov dword [eax + 0x8c], edx
call fcn.00496810
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x18]
cmp dword [esi + 8], 0
jne 0x49b24d
mov eax, dword [edi + 0x20]
and eax, 0x1000
xor ecx, ecx
or eax, ecx
je 0x49b24d
or eax, 0xffffffff
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
jmp 0x49b250
or eax, 0xffffffff
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x24], 0
jne 0x49b20a
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov al, byte [esi + 0x2c]
cmp al, 2
jb 0x49b2ae
cmp dword [ebp + 0x18], 0
je 0x49b29a
test ebx, 0x400
jne 0x49b29a
test dword [edi + 0x50], 0x100
jne 0x49b29a
push esi
call fcn.0049a930
mov dword [esp + 0x44], eax
mov al, byte [esi + 0x2c]
mov dword [esp + 0x48], edx
movzx edx, al
add esp, 4
mov dword [esp + 0x1c], edx
cmp al, 2
jb 0x49b2ae
test dword [edi + 0x50], 0x80000
jne 0x49b2ae
mov edi, esi
call fcn.0049aaf0
movsx ecx, word [esi + 0x34]
mov eax, dword [esi]
add dword [eax + 0x8c], ecx
test bl, 4
je 0x49b31b
mov edi, dword [esi + 0x348]
mov ecx, dword [edi + 0x2c]
mov eax, ecx
shr eax, 0xc
and eax, 1
jne 0x49b2f0
test bl, 8
je 0x49b31b
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x18]
cmp byte [edx + 0x2b], 1
je 0x49b31b
test ecx, 0x2000
je 0x49b2f0
test bl, 0x10
je 0x49b31b
mov edx, dword [ebp + 0xc]
test eax, eax
sete al
add al, 1
mov byte [esi + 0x2e], al
mov eax, dword [edx + 0x18]
test byte [eax + 0x1c], 0x80
jne 0x49b31b
test cl, 0x40
je 0x49b31b
test bl, 8
je 0x49b315
mov byte [esp + 0x13], 8
and ecx, 0xffffffbf
mov dword [edi + 0x2c], ecx
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x49b84f
mov ebx, dword [ebp + 8]
lea ecx, [esi + 0x348]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x28]
movzx eax, byte [edx - 0x14]
mov ecx, dword [ebp + 0xc]
lea eax, [eax + eax*8]
mov edi, dword [ecx + eax*8 + 0x18]
lea edx, [ecx + eax*8 + 8]
mov eax, dword [edi + 0x3c]
test eax, eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], 0xffff8000
je 0x49b390
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x10]
add ecx, 0xc
cmp dword [ecx], eax
mov dword [esp + 0x20], 0
je 0x49b390
jmp 0x49b380
add dword [esp + 0x20], 1
add ecx, 0x10
cmp dword [ecx], eax
jne 0x49b380
mov edx, dword [esp + 0x30]
test dword [edi + 0x1c], 0x4000
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov dword [esp + 0x34], ecx
jne 0x49b5ac
mov eax, dword [esp + 0x24]
mov cl, byte [eax + 0x2b]
cmp cl, 2
je 0x49b5ac
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x2c]
test eax, 0x400
je 0x49b458
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + 0x34]
test edi, edi
je 0x49b3e3
mov eax, dword [esp + 0x18]
cmp dword [edi], eax
je 0x49b3e3
mov edi, dword [edi + 0x18]
test edi, edi
jne 0x49b3d8
mov eax, dword [edx + 0x2c]
mov edx, dword [esp + 0x14]
push 0
push 0
push eax
push 0xad
push edx
call fcn.0043c3f0
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
add esp, 0x14
cmp byte [edx + 0x57], 0
jne 0x49b5ac
test eax, eax
jge 0x49b419
mov eax, ecx
mov eax, dword [eax + 0x6c]
sub eax, 1
mov edx, dword [esp + 0x14]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x68]
cmp byte [eax + ecx*4 + 1], 0
lea ecx, [eax + ecx*4]
je 0x49b440
push edi
mov eax, 0xfffffff5
call fcn.0043ced0
add esp, 4
jmp 0x49b5ac
test edi, edi
je 0x49b5ac
mov dword [ecx + 0x10], edi
mov byte [ecx + 1], 0xf5
add dword [edi + 0xc], 1
jmp 0x49b5ac
cmp cl, 1
je 0x49b5ac
test al, 0x40
jne 0x49b46b
test byte [ebp + 0x20], 0x20
je 0x49b475
test byte [edx + 0x24], 0x50
je 0x49b591
cmp byte [esi + 0x2e], 0
mov eax, 0x70
je 0x49b48b
mov ecx, dword [edx + 0x2c]
mov eax, 0x71
mov dword [esi + 0x14], ecx
mov edi, dword [esp + 0x30]
mov edx, dword [edi + 0x2c]
mov ebx, dword [esp + 0x20]
push eax
mov eax, dword [ebp + 8]
push edx
push eax
mov eax, dword [esp + 0x30]
call fcn.0046f0f0
add esp, 0xc
cmp byte [esi + 0x2e], 0
jne 0x49b57b
mov eax, dword [esp + 0x24]
cmp word [eax + 0x22], 0x40
jge 0x49b57b
test byte [eax + 0x1c], 0xe0
jne 0x49b57b
mov ecx, dword [esp + 0x34]
test dword [ecx + 0x2c], 0x404000
jne 0x49b57b
mov ecx, dword [edi + 0x38]
mov edx, dword [edi + 0x3c]
mov edi, ecx
xor eax, eax
or edi, edx
je 0x49b4ff
lea ebx, [ebx]
shrd ecx, edx, 1
shr edx, 1
mov edi, ecx
add eax, 1
or edi, edx
jne 0x49b4f0
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebx]
cmp byte [ecx + 0x57], 0
je 0x49b52a
mov edx, 0xfffffffd
call fcn.0043cde0
movzx dx, byte [esp + 0x13]
mov ecx, ebx
call fcn.0043cce0
mov ebx, dword [ebp + 8]
jmp 0x49b5ac
mov ecx, dword [ebx + 0x6c]
sub ecx, 1
lea edx, [ecx + ecx*4]
mov ecx, dword [ebx + 0x68]
cmp byte [ecx + edx*4 + 1], 0
lea ecx, [ecx + edx*4]
je 0x49b562
push eax
mov eax, 0xfffffffd
mov edx, ebx
call fcn.0043ced0
movzx dx, byte [esp + 0x17]
add esp, 4
mov ecx, ebx
call fcn.0043cce0
mov ebx, dword [ebp + 8]
jmp 0x49b5ac
movzx dx, byte [esp + 0x13]
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xfd
mov ecx, ebx
call fcn.0043cce0
mov ebx, dword [ebp + 8]
jmp 0x49b5ac
mov ebx, dword [esp + 0x14]
movzx dx, byte [esp + 0x13]
mov ecx, ebx
call fcn.0043cce0
mov ebx, dword [ebp + 8]
jmp 0x49b5ac
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 0x20]
push edx
push 0
push eax
mov eax, ebx
call fcn.0045fb50
add esp, 0xc
mov eax, dword [esp + 0x34]
test dword [eax + 0x2c], 0x200
je 0x49b6e3
mov edx, dword [esp + 0x24]
test byte [edx + 0x1c], 0x80
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], 0x70
je 0x49b5f9
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
jne 0x49b5f9
test byte [ebp + 0x20], 0x20
je 0x49b5f9
mov ecx, dword [esp + 0x28]
mov edi, dword [ecx - 0x4c]
mov dword [esp + 0x2c], 0
jmp 0x49b672
cmp byte [esi + 0x2e], 0
mov edi, dword [ebp + 0x24]
je 0x49b62b
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x10]
mov eax, dword [eax + 8]
test eax, eax
je 0x49b61e
cmp eax, ecx
je 0x49b61e
mov eax, dword [eax + 0x14]
add edi, 1
test eax, eax
jne 0x49b610
mov dword [esp + 0x2c], 0x71
mov dword [esi + 0x18], edi
jmp 0x49b672
test edi, edi
je 0x49b63f
test byte [ebp + 0x20], 0x20
je 0x49b63f
mov dword [esp + 0x2c], 0x65
jmp 0x49b672
mov edi, dword [ebx + 0x28]
lea edx, [edi + 1]
mov dword [ebx + 0x28], edx
test dword [ecx + 0x38], 0x800
je 0x49b672
mov eax, dword [esp + 0x18]
test dword [eax + 0x50], 0x1000000
jne 0x49b672
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
push ecx
push edi
push edx
push ebx
call fcn.0049ac80
add esp, 0x10
cmp dword [esp + 0x2c], 0
mov eax, dword [esp + 0x28]
mov dword [eax - 0x48], edi
je 0x49b6e3
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 0x2c]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x30]
push eax
push edi
push ecx
push edx
call fcn.0043c3f0
mov ecx, dword [esp + 0x4c]
add esp, 0x14
mov eax, ebx
call fcn.0043d070
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x2c]
test al, 0xf
je 0x49b6e3
test eax, 0x188002
jne 0x49b6e3
test byte [esi + 0x28], 1
jne 0x49b6e3
cmp byte [esi + 0x2f], 2
je 0x49b6e3
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x6c]
test eax, eax
jle 0x49b6e3
lea edx, [eax + eax*4]
mov eax, ecx
mov ecx, dword [eax + 0x68]
mov word [ecx + edx*4 - 0x12], 2
cmp dword [esp + 0x20], 0
jl 0x49b714
mov eax, dword [ebx + 0x78]
test eax, eax
jne 0x49b6f3
mov eax, ebx
mov ecx, dword [esp + 0x20]
mov edi, dword [eax + 0x58]
mov edx, 1
shl edx, cl
test edi, edx
jne 0x49b714
or edx, edi
cmp ecx, 1
mov dword [eax + 0x58], edx
jne 0x49b714
call fcn.00466a10
mov edx, dword [esp + 0x30]
test byte [edx + 0x24], 0x10
je 0x49b83b
mov eax, dword [esi]
mov ecx, dword [eax]
push 0
push 0x24
call fcn.00419650
mov edi, eax
add esp, 8
test edi, edi
je 0x49b751
mov ecx, dword [esi + 0x44]
mov dword [edi], ecx
mov dword [edi + 8], 0x14
mov dword [edi + 0xc], 0
mov dword [esi + 0x44], edi
add edi, 0x10
test edi, edi
mov edx, dword [esp + 0x28]
mov dword [edx - 0x18], edi
je 0x49b83b
mov eax, dword [ebx + 0x28]
mov ecx, dword [esp + 0x14]
mov dword [edi], eax
mov eax, 1
add dword [ebx + 0x28], eax
add dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x2c]
push 0
push eax
push 0x10000
push 0x4d
push ecx
mov dword [edi + 4], eax
call fcn.0043c3f0
add dword [ebx + 0x2c], 1
mov eax, dword [ebx + 0x2c]
mov edx, dword [esp + 0x28]
add esp, 0x14
push 0
push eax
push 0
push 0x4b
push edx
mov dword [edi + 8], eax
call fcn.0043c3f0
mov eax, dword [esp + 0x38]
add esp, 0x14
test byte [eax + 0x1c], 0x80
jne 0x49b7fb
mov eax, dword [edi]
mov edi, dword [esp + 0x14]
push 0
push 1
push eax
push 0x76
push edi
call fcn.0043c3f0
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx]
add esp, 0x14
push 0
push 1
call fcn.0047bfd0
add esp, 8
test eax, eax
je 0x49b828
mov edx, dword [eax + 0x10]
mov dword [eax + 0x14], 0
mov byte [edx], 0
mov edx, 0xfffffff8
mov ecx, edi
call fcn.0043d040
jmp 0x49b828
call fcn.00461340
mov ecx, dword [edi]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x38], eax
movzx eax, word [eax + 0x32]
push 0
push eax
push ecx
push 0x76
push edx
call fcn.0043c3f0
mov ecx, dword [esp + 0x4c]
add esp, 0x14
mov eax, ebx
call fcn.0043d070
mov eax, dword [esp + 0x34]
and dword [eax + 0x2c], 0xffffffbf
mov ebx, dword [ebp + 8]
mov byte [esi + 0x2d], 0
mov byte [esi + 0x2f], 3
add dword [esp + 0x28], 0x60
sub dword [esp + 0x3c], 1
jne 0x49b338
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x6c]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x38], edx
cmp byte [ecx + 0x57], 0
jne 0x49b20a
test eax, eax
mov dword [esp + 0x28], 0
jle 0x49b9e0
lea ebx, [esi + 0x334]
mov edx, dword [ebp + 8]
cmp dword [edx + 0x24], 0
jne 0x49b20a
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + 0x2c]
movzx eax, byte [ebx]
lea edx, [eax + eax*8]
mov eax, dword [ebp + 0xc]
lea edi, [eax + edx*8 + 8]
mov eax, dword [edi + 0x28]
test al, 0x10
mov dword [esp + 0x38], ecx
je 0x49b91f
test al, 8
push 0
je 0x49b8cb
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
push edx
push 0xa
push eax
call fcn.0043c3f0
add esp, 0x14
jmp 0x49b91f
mov ecx, dword [esp + 0x18]
push 0
push 0
push 0xf
push ecx
call fcn.0043c3f0
mov edx, dword [edi + 0x18]
add esp, 0x14
push 0
push edx
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0x1c]
mov edi, dword [esp + 0x1c]
push eax
push 0xa
push edi
call fcn.0043c3f0
mov edx, dword [edi]
mov ecx, dword [edi + 0x6c]
add esp, 0x14
cmp byte [edx + 0x57], 0
je 0x49b90d
mov eax, 0x4d6798
jmp 0x49b91c
mov eax, dword [esp + 0x3c]
mov edx, edi
mov edx, dword [edx + 0x68]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x38]
test eax, 0x404000
je 0x49b97e
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
test eax, 0x4000
lea eax, [ebx - 0x3c]
je 0x49b95f
push eax
movzx eax, byte [ebx]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
lea eax, [eax + eax*8]
lea edx, [ecx + eax*8 + 8]
push edx
lea eax, [esi + 0x50]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00494ed0
add esp, 0x18
jmp 0x49b970
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
push esi
call fcn.00495980
add esp, 0x14
mov edx, dword [esp + 0x18]
cmp byte [edx + 0x57], 0
jne 0x49b20a
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea ecx, [ebx - 0x3c]
push eax
call fcn.0048de20
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x6c]
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x2c]
add esp, 4
push eax
mov dword [ebx - 0x1c], edx
mov edx, dword [esp + 0x44]
push edx
lea eax, [ebx - 0x3c]
push eax
mov eax, dword [ebp + 8]
push edi
push esi
push ecx
push eax
call fcn.0048f460
mov ecx, dword [ebx - 0x24]
add edi, 1
add esp, 0x1c
add ebx, 0x60
cmp edi, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
mov dword [esi + 0x1c], ecx
mov dword [esp + 0x28], edi
jl 0x49b87d
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x6c]
pop edi
mov dword [esi + 0x3c], edx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret