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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
mov eax, dword [0x4ba010]
xor eax, esp
mov dword [esp + 0x100], eax
xor eax, eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
mov edx, dword [edi + 0x34]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x70], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x104], eax
mov byte [esp + 0x108], al
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], edx
cmp ecx, eax
jne 0x41db27
mov eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.004a3bc8
mov esp, ebp
pop ebp
ret
movzx ecx, word [edi + 0x16]
movzx edx, byte [edi + 0xc]
lea ebx, [edx + ecx]
cmp ebx, 2
jl 0x41db53
cmp esi, eax
je 0x41db4b
cmp esi, ebx
jne 0x41db48
mov eax, dword [ebp + 0x10]
lea eax, [ebx + eax - 2]
jmp 0x41db4b
lea eax, [esi - 1]
mov ebx, 2
sub ebx, dword [ebp + 0x10]
mov dword [esp + 0x58], eax
sub eax, edx
add eax, ebx
lea esi, [ebx + 1]
mov dword [esp + 0x30], esi
cmp eax, ecx
jne 0x41db73
movzx ecx, byte [edi + 9]
mov edx, dword [edi + 0x38]
lea eax, [ecx + edx + 8]
jmp 0x41db8a
mov ecx, dword [edi + 0x40]
mov dx, word [ecx + eax*2]
movzx ecx, word [edi + 0x18]
mov ah, dl
mov al, dh
movzx eax, ax
and eax, ecx
add eax, dword [edi + 0x38]
mov esi, dword [eax]
bswap esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x34], esi
mov edx, dword [esp + 0x24]
cmp esi, dword [edx + 0x2c]
jbe 0x41dbcb
push 0x4b83a0
push 0xed4a
push 0x4b8578
push 0x4b855c
push 0xb
call fcn.00406270
mov dword [esp + 0x24], 0xb
mov eax, dword [esp + 0x24]
add esp, 0x14
jmp 0x41dc44
push 0
lea ecx, [esp + 0x58]
mov eax, edx
mov eax, dword [eax]
mov edx, dword [eax + 0xd0]
push ecx
push esi
push eax
call edx
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x41dc3c
mov ecx, dword [esp + 0x54]
mov eax, dword [ecx + 8]
cmp byte [eax], 0
mov dword [esp + ebx*4 + 0x60], eax
jne 0x41dc42
cmp esi, dword [eax + 4]
je 0x41dc21
mov edx, dword [ecx + 4]
cmp esi, 1
mov dword [eax + 0x38], edx
setne dl
dec dl
mov dword [eax + 0x48], ecx
mov ecx, dword [esp + 0x24]
and dl, 0x64
mov dword [eax + 0x34], ecx
mov dword [eax + 4], esi
mov byte [eax + 9], dl
mov esi, eax
call fcn.004181e0
mov dword [esp + 0x10], eax
test eax, eax
je 0x41dc42
test esi, esi
je 0x41dc3c
mov eax, dword [esi + 0x48]
call fcn.00412bd0
mov eax, dword [esp + 0x10]
jmp 0x41dc44
xor eax, eax
mov dword [esp + 0x18], eax
test eax, eax
jne 0x41dd71
mov eax, dword [esp + ebx*4 + 0x60]
movzx edx, byte [eax + 0xc]
movzx ecx, word [eax + 0x16]
add edx, dword [esp + 0x14]
mov eax, ebx
lea esi, [edx + ecx + 1]
dec ebx
mov dword [esp + 0x14], esi
test eax, eax
je 0x41dd85
mov al, byte [edi + 0xc]
test al, al
je 0x41dcb7
movzx ecx, word [edi + 0x1a]
mov edx, dword [esp + 0x58]
add edx, ebx
cmp edx, ecx
jne 0x41dcb7
mov eax, dword [edi + 0x24]
mov esi, dword [eax]
push eax
mov dword [esp + ebx*4 + 0xfc], eax
mov eax, dword [edi + 0x4c]
bswap esi
push edi
mov dword [esp + 0x3c], esi
call eax
movzx ecx, ax
add esp, 8
mov dword [esp + ebx*4 + 0x88], ecx
mov byte [edi + 0xc], 0
jmp 0x41db96
mov ecx, dword [edi + 0x40]
movzx edx, al
mov eax, dword [esp + 0x58]
sub eax, edx
add eax, ebx
mov dx, word [ecx + eax*2]
mov ah, dl
mov al, dh
movzx edx, word [edi + 0x18]
movzx ecx, ax
mov eax, dword [edi + 0x38]
and ecx, edx
add eax, ecx
mov ecx, dword [eax]
bswap ecx
push eax
mov dword [esp + 0x38], ecx
mov ecx, dword [edi + 0x4c]
push edi
mov dword [esp + ebx*4 + 0x100], eax
call ecx
mov edx, dword [esp + 0x2c]
movzx esi, ax
add esp, 8
test byte [edx + 0x16], 4
mov dword [esp + ebx*4 + 0x88], esi
je 0x41dd4b
mov eax, dword [esp + ebx*4 + 0xf8]
sub eax, dword [edi + 0x38]
lea ecx, [esi + eax]
cmp ecx, dword [edx + 0x24]
jg 0x41ebf4
mov ecx, dword [esp + ebx*4 + 0xf8]
push esi
push ecx
mov ecx, dword [esp + 0x78]
add ecx, eax
push ecx
call fcn.004a7950
mov edx, dword [esp + 0x7c]
sub edx, dword [edi + 0x38]
add esp, 0xc
add edx, dword [esp + ebx*4 + 0xf8]
mov dword [esp + ebx*4 + 0xf8], edx
movzx ecx, byte [edi + 0xc]
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x18]
push eax
sub edx, ecx
push esi
add edx, ebx
push edx
mov esi, edi
call fcn.0041cd00
mov esi, dword [esp + 0x40]
add esp, 0xc
jmp 0x41db96
lea eax, [ebx*4 + 4]
push eax
push 0
lea ecx, [esp + 0x68]
push ecx
jmp 0x41ec29
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x20]
add esi, 3
and esi, 0xfffffffc
lea edx, [esi + esi*2]
lea eax, [ecx + edx*2]
call fcn.00403ed0
mov dword [esp + 0x40], eax
test eax, eax
jne 0x41ddb2
mov dword [esp + 0x18], 7
jmp 0x41ec31
lea eax, [eax + esi*4]
lea edx, [eax + esi*2]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x60]
movzx ecx, byte [eax + 8]
add cx, cx
add cx, cx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x3c], eax
movzx eax, byte [eax + 3]
movzx edx, cx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x54], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0xc], 0
test ecx, ecx
jle 0x41dfc1
mov ebx, dword [esp + 0x38]
lea esp, [esp]
mov eax, dword [esp + 0xc]
mov edi, dword [esp + eax*4 + 0x60]
movzx ecx, word [edi + 0x18]
mov edx, dword [esp + 0x60]
movzx esi, word [edi + 0x12]
lea eax, [esp + eax*4 + 0x60]
mov eax, dword [edi + 0x38]
mov dword [esp + 0x28], ecx
mov ecx, dword [edx + 0x38]
mov dl, byte [eax]
add esi, eax
mov dword [esp + 0x48], eax
cmp dl, byte [ecx]
jne 0x41e0a3
movzx eax, word [edi + 0x16]
movzx ecx, byte [edi + 0xc]
mov edx, dword [esp + 0x44]
add eax, ecx
add eax, eax
push eax
lea eax, [edx + ebx*2]
push 0
push eax
call fcn.004a6b70
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x41debc
movzx eax, word [edi + 0x1a]
mov ecx, dword [esp + 0x48]
test eax, eax
jle 0x41de92
mov dword [esp + 0x14], eax
mov dx, word [esi]
mov ah, dl
add esi, 2
inc ebx
mov al, dh
movzx eax, ax
mov edx, eax
movzx eax, word [esp + 0x28]
and edx, eax
add edx, ecx
dec dword [esp + 0x14]
mov eax, edx
mov edx, dword [esp + 0x40]
mov dword [edx + ebx*4 - 4], eax
jne 0x41de67
jmp 0x41de96
mov edx, dword [esp + 0x40]
xor eax, eax
cmp byte [edi + 0xc], al
jbe 0x41dec0
lea ecx, [edi + 0x24]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx]
add dword [esp + 0x10], 4
mov dword [edx + ebx*4], ecx
movzx ecx, byte [edi + 0xc]
inc eax
inc ebx
cmp eax, ecx
jl 0x41dea4
mov ecx, dword [esp + 0x48]
movzx eax, word [edi + 0x12]
movzx edx, word [edi + 0x16]
add eax, ecx
lea eax, [eax + edx*2]
mov dword [esp + 0x14], eax
cmp esi, eax
jae 0x41defa
mov dx, word [esi]
mov ah, dl
add esi, 2
inc ebx
mov al, dh
movzx edx, ax
movzx eax, word [esp + 0x28]
and edx, eax
mov eax, dword [esp + 0x40]
add edx, ecx
mov dword [eax + ebx*4 - 4], edx
cmp esi, dword [esp + 0x14]
jb 0x41ded5
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0xc]
dec ecx
mov dword [esp + eax*4 + 0xe4], ebx
cmp eax, ecx
jge 0x41dfaa
cmp dword [esp + 0x4c], 0
jne 0x41dfaa
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x44]
mov edx, eax
movzx eax, word [esp + edx*4 + 0x88]
mov edx, dword [esp + 0x1c]
add edx, ecx
add ecx, eax
push eax
mov word [esi + ebx*2], ax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + eax*4 + 0xfc]
push ecx
push edx
mov dword [esp + 0x20], edx
call fcn.004a7950
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x4c]
movzx edx, ax
add edx, dword [esp + 0x20]
add esp, 0xc
mov dword [ecx + ebx*4], edx
sub word [esi + ebx*2], ax
cmp byte [edi + 8], 0
jne 0x41df82
mov eax, dword [edi + 0x38]
mov ecx, dword [ecx + ebx*4]
mov edx, dword [eax + 8]
mov dword [ecx], edx
jmp 0x41dfa5
cmp word [esi + ebx*2], 4
jae 0x41dfa5
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
mov byte [ecx + eax], 0
inc word [esi + ebx*2]
inc eax
cmp word [esi + ebx*2], 4
jb 0x41df91
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xc]
inc ebx
inc eax
mov dword [esp + 0xc], eax
cmp eax, dword [esp + 0x30]
jl 0x41de00
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x38], ebx
movzx eax, word [esp + 0x54]
mov edx, dword [esp + 0x24]
mov edx, dword [edx + 0x24]
lea eax, [edx + eax - 0xc]
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ecx, ecx
jle 0x41e05f
mov esi, dword [esp + eax*4 + 0x60]
movzx ecx, word [esi + 0x14]
mov edi, dword [esp + 0x48]
sub edi, ecx
mov dword [esp + eax*4 + 0x88], edi
js 0x41e0d2
cmp byte [esi + 0xc], 0
mov dword [esp + 0x14], 0
jbe 0x41e042
lea ebx, [esi + 0x24]
nop
mov edx, dword [ebx]
mov eax, dword [esi + 0x4c]
push edx
push esi
call eax
movzx edx, byte [esi + 0xc]
movzx ecx, ax
mov eax, dword [esp + 0x1c]
inc eax
add esp, 8
add ebx, 4
lea edi, [edi + ecx + 2]
mov dword [esp + 0x14], eax
cmp eax, edx
jl 0x41e010
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0x88], edi
mov ecx, dword [esp + eax*4 + 0xe4]
mov dword [esp + eax*4 + 0x9c], ecx
inc eax
mov dword [esp + 0xc], eax
cmp eax, dword [esp + 0x30]
jl 0x41dfe3
mov ecx, dword [esp + 0x30]
xor edx, edx
mov eax, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0xc], edx
cmp ecx, edx
jle 0x41e2c5
lea esi, [esp + 0x9c]
mov ecx, 1
sub esi, 4
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x2c], esi
mov edi, edi
mov esi, dword [esp + edx + 0x88]
cmp esi, dword [esp + 0x48]
jle 0x41e1c7
jmp 0x41e108
push 0x4b83a0
push 0x1017d
push 0x4b8578
push 0x4b855c
push 0xb
mov dword [esp + 0x4c], ebx
call fcn.00406270
add esp, 0x14
mov dword [esp + 0x18], 0xb
jmp 0x41ec31
push 0x4b83a0
push 0x101df
push 0x4b8578
push 0x4b855c
push 0xb
call fcn.00406270
add esp, 0x14
mov dword [esp + 0x18], 0xb
jmp 0x41ec31
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
cmp ecx, eax
jl 0x41e132
lea eax, [ecx + 1]
mov dword [esp + 0x28], eax
cmp eax, 5
jg 0x41e3df
mov eax, dword [esp + 0x38]
mov dword [esp + edx + 0x8c], 0
mov dword [esp + edx + 0xa0], eax
mov ebx, dword [esp + edx + 0x9c]
mov ecx, dword [esp + 0x44]
lea eax, [ebx - 1]
mov dword [esp + 0x14], eax
movzx eax, word [ecx + eax*2]
test ax, ax
jne 0x41e161
mov edi, dword [esp + 0x14]
lea esi, [esp + 0x38]
call fcn.0041cfe0
mov edx, dword [esp + 0x1c]
movzx eax, ax
movzx eax, ax
add eax, 2
sub dword [esp + edx + 0x88], eax
cmp dword [esp + 0x4c], 0
jne 0x41e1a4
cmp ebx, dword [esp + 0x38]
jge 0x41e1a2
mov eax, dword [esp + 0x44]
movzx eax, word [eax + ebx*2]
test ax, ax
jne 0x41e19a
mov edi, ebx
lea esi, [esp + 0x38]
call fcn.0041cfe0
mov edx, dword [esp + 0x1c]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x41e1a4
xor eax, eax
add dword [esp + edx + 0x8c], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x14]
mov dword [esp + edx + 0x9c], ecx
cmp dword [esp + edx + 0x88], eax
jg 0x41e100
mov ecx, dword [esp + 0x38]
cmp dword [esp + edx + 0x9c], ecx
lea ebx, [esp + edx + 0x9c]
jge 0x41e272
nop
mov edi, dword [ebx]
mov eax, dword [esp + 0x44]
movzx eax, word [eax + edi*2]
test ax, ax
jne 0x41e1ff
lea esi, [esp + 0x38]
call fcn.0041cfe0
mov edx, dword [esp + 0x1c]
movzx eax, ax
mov ecx, dword [esp + edx + 0x88]
movzx eax, ax
add eax, 2
add ecx, eax
cmp ecx, dword [esp + 0x48]
jg 0x41e272
mov edx, dword [esp + 0x1c]
inc edi
cmp dword [esp + 0x4c], 0
mov dword [esp + edx + 0x88], ecx
mov dword [ebx], edi
jne 0x41e252
cmp edi, dword [esp + 0x38]
jge 0x41e250
mov eax, dword [esp + 0x44]
movzx eax, word [eax + edi*2]
test ax, ax
jne 0x41e248
lea esi, [esp + 0x38]
call fcn.0041cfe0
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x41e252
xor eax, eax
mov ecx, dword [esp + 0x1c]
sub dword [esp + ecx + 0x8c], eax
mov edx, dword [esp + 0x1c]
lea ecx, [esp + ecx + 0x8c]
cmp edi, dword [esp + 0x38]
jl 0x41e1e0
mov ebx, dword [ebx]
cmp ebx, dword [esp + 0x38]
jl 0x41e286
mov ecx, dword [esp + 0x10]
mov eax, ecx
mov dword [esp + 0x28], eax
jmp 0x41e2a8
cmp dword [esp + 0xc], 0
jle 0x41e296
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + edx]
jmp 0x41e298
xor eax, eax
cmp ebx, eax
jle 0x41e40a
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0xc]
inc esi
add edx, 4
inc ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ecx
cmp esi, eax
jl 0x41e090
dec eax
mov dword [esp + 0xc], eax
test eax, eax
jle 0x41e451
mov edx, dword [esp + eax*4 + 0x84]
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + eax*4 + 0x88]
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x9c]
mov ebx, dword [edx + eax*4 - 4]
sub edx, 4
dec ebx
mov dword [esp + 0x2c], edx
mov edx, ebx
sub edx, dword [esp + 0x4c]
mov dword [esp + 0x14], ecx
lea edi, [edx + edx + 2]
cmp word [edi + esi], 0
mov dword [esp + 0x10], edi
jne 0x41e330
lea edi, [edx + 1]
lea esi, [esp + 0x38]
call fcn.0041cfe0
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x10], edi
cmp word [esi + ebx*2], 0
jne 0x41e352
mov edi, ebx
lea esi, [esp + 0x38]
call fcn.0041cfe0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x44]
test ecx, ecx
je 0x41e38c
cmp dword [ebp + 0x10], 0
jne 0x41e3be
mov edx, dword [esp + 0x28]
dec edx
mov edi, eax
sub edi, edx
mov edx, dword [esp + 0x1c]
neg edi
sbb edi, edi
and edi, 2
sub edx, edi
movzx edi, word [esi + ebx*2]
sub edx, edi
mov edi, dword [esp + 0x10]
movzx esi, word [edi + esi]
lea esi, [esi + ecx + 2]
cmp esi, edx
jg 0x41e3be
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x10]
movzx edx, word [edx + esi]
sub dword [esp + 0x10], 2
lea ecx, [ecx + edx + 2]
movzx edx, word [esi + ebx*2]
mov edi, 0xfffffffe
sub edi, edx
mov edx, dword [esp + 0x2c]
add dword [esp + 0x1c], edi
mov dword [edx + eax*4], ebx
dec ebx
mov dword [esp + 0x14], ecx
jns 0x41e334
mov dword [esp + eax*4 + 0x88], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + eax*4 + 0x84], ecx
cmp eax, 1
jle 0x41e435
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx + eax*4 - 4]
jmp 0x41e437
push 0x4b83a0
push 0x101eb
push 0x4b8578
push 0x4b855c
push 0xb
call fcn.00406270
add esp, 0x14
mov dword [esp + 0x18], 0xb
jmp 0x41ec31
push 0x4b83a0
push 0x1020c
push 0x4b8578
push 0x4b855c
push 0xb
call fcn.00406270
add esp, 0x14
mov dword [esp + 0x18], 0xb
jmp 0x41ec31
xor ecx, ecx
mov edx, dword [esp + 0x2c]
cmp dword [edx + eax*4], ecx
jle 0x41e4c6
dec eax
mov dword [esp + 0xc], eax
test eax, eax
jg 0x41e2d2
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0x38]
movzx ebx, byte [ecx]
xor edi, edi
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x28], edi
jle 0x41e5d4
cmp edi, dword [esp + 0x30]
jge 0x41e545
mov eax, dword [esp + edi*4 + 0x60]
mov esi, dword [eax + 0x48]
test byte [esi + 0x18], 4
mov ecx, dword [esi + 0x10]
mov dword [esp + edi*4 + 0x74], eax
mov dword [esp + 0x14], eax
mov dword [esp + edi*4 + 0x60], 0
je 0x41e502
mov edx, dword [ecx + 0x1c]
cmp edx, dword [esi + 0x14]
jb 0x41e502
cmp dword [ecx + 0x68], 0
je 0x41e4f1
mov ecx, esi
call fcn.0040e980
test eax, eax
je 0x41e4f1
push esi
call fcn.00411ae0
inc dword [esp + 0x24]
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jmp 0x41e5c3
push 0x4b83a0
push 0x10236
push 0x4b8578
push 0x4b855c
push 0xb
call fcn.00406270
add esp, 0x14
mov dword [esp + 0x18], 0xb
jmp 0x41ec31
inc dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x18], eax
test eax, eax
jmp 0x41e5c3
mov eax, dword [ecx + 0x2c]
test eax, eax
jne 0x41e536
mov eax, dword [ecx + 0x9c]
cmp eax, dword [ecx + 0xa0]
jbe 0x41e52f
push esi
call fcn.00413060
inc dword [esp + 0x24]
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jmp 0x41e5c3
mov eax, esi
call fcn.00412f70
inc dword [esp + 0x20]
mov dword [esp + 0x18], eax
test eax, eax
jmp 0x41e5c3
cmp dword [ebp + 0x10], 0
mov eax, 1
jne 0x41e554
mov eax, dword [esp + 0x34]
push 0
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
call fcn.0041bf40
add esp, 0x14
mov dword [esp + 0x18], eax
test eax, eax
jne 0x41ec31
mov esi, dword [esp + 0x14]
push ebx
call fcn.004184d0
mov ecx, dword [esp + 0x3c]
inc dword [esp + 0x24]
mov dword [esp + edi*4 + 0xe8], ecx
mov ecx, dword [esp + 0x28]
add esp, 4
cmp byte [ecx + 0x11], 0
mov dword [esp + edi*4 + 0x74], esi
je 0x41e5c9
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x18]
push edx
mov edx, dword [eax + 4]
mov eax, dword [esi + 4]
push edx
push 5
call fcn.00417460
add esp, 0xc
cmp dword [esp + 0x18], 0
jne 0x41ec31
inc edi
cmp edi, dword [esp + 0x28]
jl 0x41e46b
mov esi, dword [esp + 0x20]
xor eax, eax
test esi, esi
jle 0x41e627
mov edi, edi
mov ecx, dword [esp + eax*4 + 0x74]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 0x48]
mov cx, word [ecx + 0x18]
mov word [esp + eax*2 + 0xf8], cx
xor ecx, ecx
mov dword [esp + eax*4 + 0xc8], edx
mov dword [esp + eax*4 + 0xb0], edx
test eax, eax
jle 0x41e622
lea ebx, [ebx]
cmp dword [esp + ecx*4 + 0xc8], edx
je 0x41e781
inc ecx
cmp ecx, eax
jl 0x41e610
inc eax
cmp eax, esi
jl 0x41e5e0
xor ecx, ecx
mov dword [esp + 0xc], ecx
test esi, esi
jle 0x41e6dd
xor edi, edi
lea eax, [edi + 1]
cmp esi, eax
jle 0x41e664
xor edx, edx
lea ecx, [eax*4]
mov ebx, dword [esp + ecx + 0xb0]
cmp ebx, dword [esp + edx + 0xb0]
jae 0x41e65b
mov edi, eax
mov edx, ecx
inc eax
cmp eax, esi
jl 0x41e640
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + edi*4 + 0xb0]
mov dword [esp + 0x34], edx
mov dword [esp + edi*4 + 0xb0], 0xffffffff
cmp edi, ecx
je 0x41e6cc
jle 0x41e69d
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x2c]
mov edx, dword [esp + edi*4 + 0x74]
mov esi, dword [edx + 0x48]
lea eax, [ecx + edi + 1]
xor ecx, ecx
mov word [esi + 0x18], cx
call fcn.0040d2a0
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + edx*4 + 0x74]
mov esi, dword [ebx + 0x48]
mov ax, word [esp + edi*2 + 0xf8]
mov word [esi + 0x18], ax
mov eax, dword [esp + 0x34]
call fcn.0040d2a0
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x20]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0xc]
inc ecx
mov dword [esp + 0xc], ecx
cmp ecx, esi
jl 0x41e635
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + esi*4 + 0x70]
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x50]
bswap edx
mov dword [ecx], edx
test bl, 8
jne 0x41e713
mov ecx, dword [esp + 0x30]
cmp esi, ecx
je 0x41e713
lea edx, [esp + 0x74]
jg 0x41e703
lea edx, [esp + 0x60]
mov edx, dword [edx + ecx*4 - 4]
mov ecx, dword [edx + 0x38]
mov edx, dword [eax + 0x38]
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov edx, dword [esp + 0x24]
cmp byte [edx + 0x11], 0
je 0x41e8e1
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x50], ecx
movzx ecx, word [eax + 0x16]
mov ebx, eax
movzx eax, byte [eax + 0xc]
add ecx, eax
xor edi, edi
mov dword [esp + 0x14], ecx
mov ecx, dword [edx + 0x24]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x10], edi
cmp dword [esp + 0x38], edi
jle 0x41e8e1
mov dword [esp + 0x28], edi
mov edx, dword [esp + 0x40]
mov esi, dword [edx + edi*4]
mov dword [esp + 0x34], esi
cmp edi, dword [esp + 0x14]
jne 0x41e7da
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x20]
jge 0x41e7ac
mov eax, dword [esp + eax*4 + 0x74]
jmp 0x41e7b0
push 0x4b83a0
push 0x10280
push 0x4b8578
push 0x4b855c
push 0xb
call fcn.00406270
add esp, 0x14
mov dword [esp + 0x18], 0xb
jmp 0x41ec31
mov eax, dword [esp + eax*4 + 0x60]
movzx edx, byte [eax + 0xc]
movzx ecx, word [eax + 0x16]
mov eax, dword [eax + 0x38]
mov esi, dword [esp + 0x34]
add ecx, edx
xor edx, edx
cmp dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
sete dl
add edx, dword [esp + 0x14]
add edx, ecx
mov dword [esp + 0x14], edx
jmp 0x41e7de
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x28]
cmp edi, dword [esp + ecx + 0x9c]
jne 0x41e80b
mov ecx, dword [esp + 0x2c]
inc ecx
mov dword [esp + 0x2c], ecx
add ecx, ecx
add ecx, ecx
cmp dword [esp + 0x4c], 0
mov ebx, dword [esp + ecx + 0x74]
mov dword [esp + 0x28], ecx
je 0x41e8d6
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x20]
jge 0x41e833
mov edx, dword [ebx + 4]
cmp edx, dword [esp + ecx*4 + 0xc8]
jne 0x41e833
cmp esi, eax
jb 0x41e833
mov ecx, dword [esp + 0x1c]
add ecx, eax
cmp esi, ecx
jb 0x41e8d6
cmp word [esp + 0x54], 0
jne 0x41e856
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esi]
push 5
bswap eax
call fcn.00417460
add esp, 0xc
mov ecx, dword [esp + 0x44]
movzx eax, word [ecx + edi*2]
test ax, ax
jne 0x41e873
lea esi, [esp + 0x38]
call fcn.0041cfe0
mov esi, dword [esp + 0x34]
movzx eax, ax
cmp ax, word [ebx + 0x10]
jbe 0x41e8cb
cmp dword [esp + 0x18], 0
jne 0x41ec31
mov eax, dword [ebx + 0x50]
lea edx, [esp + 0xb0]
push edx
push esi
push ebx
call eax
movzx ecx, word [esp + 0xcc]
add esp, 0xc
cmp ecx, dword [esp + 0xbc]
jae 0x41e8d6
movzx ecx, word [esp + 0xc2]
mov eax, dword [ebx + 4]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + esi - 4]
mov ecx, dword [ebx + 0x34]
push 3
bswap eax
call fcn.00417460
add esp, 0xc
cmp dword [esp + 0x18], 0
jne 0x41ec31
inc edi
cmp edi, dword [esp + 0x38]
jl 0x41e75b
mov eax, dword [esp + 0x20]
dec eax
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], eax
test eax, eax
jle 0x41ea37
mov eax, dword [esp + edi*4 + 0x9c]
mov edx, dword [esp + 0x40]
mov ecx, dword [edx + eax*4]
mov edx, dword [esp + 0x44]
movzx edx, word [edx + eax*2]
mov esi, dword [esp + 0x70]
mov ebx, dword [esp + edi*4 + 0x74]
add esi, dword [esp + 0x6c]
mov dword [esp + 0x50], ecx
movzx ecx, word [esp + 0x54]
add ecx, edx
cmp byte [ebx + 8], 0
jne 0x41e93c
mov edi, dword [esp + 0x50]
mov eax, dword [ebx + 0x38]
mov edx, dword [edi]
mov dword [eax + 8], edx
jmp 0x41e9f5
cmp dword [esp + 0x4c], 0
je 0x41e9d8
mov edx, dword [esp + 0x40]
mov eax, dword [edx + eax*4 - 4]
lea ecx, [esp + 0xc8]
push ecx
mov ecx, dword [ebx + 0x50]
push eax
push ebx
call ecx
mov eax, dword [esp + 0xd8]
mov edx, dword [esp + 0xd4]
add esp, 0xc
mov edi, esi
mov ecx, edx
mov dword [esp + 0xfc], eax
test eax, eax
ja 0x41e9c4
jb 0x41e985
cmp edx, 0x7f
ja 0x41e997
and dl, 0x7f
mov eax, 1
mov byte [esi + 4], dl
lea ecx, [eax + 4]
xor esi, esi
jmp 0x41e9f5
test eax, eax
ja 0x41e9c4
jb 0x41e9a5
cmp edx, 0x3fff
ja 0x41e9c4
shrd edx, eax, 7
and cl, 0x7f
shr eax, 7
or dl, 0x80
mov byte [esi + 5], cl
mov eax, 2
mov byte [esi + 4], dl
lea ecx, [eax + 4]
xor esi, esi
jmp 0x41e9f5
push eax
push edx
lea ecx, [esi + 4]
call fcn.00407a70
add esp, 8
lea ecx, [eax + 4]
xor esi, esi
jmp 0x41e9f5
mov edi, dword [esp + 0x50]
sub edi, 4
cmp edx, 4
jne 0x41e9f5
mov eax, dword [esp + 0x5c]
mov edx, dword [eax + 0x4c]
push edi
push eax
call edx
add esp, 8
movzx ecx, ax
mov edx, dword [ebx + 4]
add dword [esp + 0x6c], ecx
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x64]
push edi
mov edi, dword [esp + 0x18]
add eax, edi
push eax
push edx
mov eax, esi
call fcn.0041ce40
add esp, 0x14
cmp dword [esp + 0x18], 0
jne 0x41ec31
inc edi
mov dword [esp + 0xc], edi
cmp edi, dword [esp + 0x14]
jl 0x41e8f8
mov edi, dword [esp + 0x20]
mov ecx, 1
sub ecx, edi
mov dword [esp + 0xc], ecx
cmp ecx, edi
jge 0x41eb17
mov ebx, dword [esp + 0x4c]
mov eax, ecx
cdq
mov esi, eax
xor esi, edx
sub esi, edx
cmp byte [esp + esi + 0x104], 0
jne 0x41eb0a
test ecx, ecx
jns 0x41ea81
mov eax, dword [esp + esi*4 + 0xe0]
cmp eax, dword [esp + esi*4 + 0x98]
jl 0x41eb0a
test esi, esi
jne 0x41ea92
mov eax, dword [esp + 0x9c]
xor edx, edx
xor ecx, ecx
jmp 0x41eac3
cmp esi, dword [esp + 0x30]
jge 0x41eaa8
xor edx, edx
test ebx, ebx
sete dl
add edx, dword [esp + esi*4 + 0xe0]
jmp 0x41eaac
mov edx, dword [esp + 0x38]
mov eax, dword [esp + esi*4 + 0x9c]
xor ecx, ecx
test ebx, ebx
sete cl
add ecx, dword [esp + esi*4 + 0x98]
sub eax, ecx
mov edi, dword [esp + esi*4 + 0x74]
lea ebx, [esp + 0x38]
push ebx
push eax
push ecx
push edx
mov eax, edi
call fcn.0041d610
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
jne 0x41ec31
mov cx, word [esp + 0x48]
sub cx, word [esp + esi*4 + 0x88]
mov ebx, dword [esp + 0x4c]
mov word [edi + 0x14], cx
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
mov byte [esp + esi + 0x104], 1
inc ecx
mov dword [esp + 0xc], ecx
cmp ecx, edi
jl 0x41ea52
cmp dword [ebp + 0xc], 0
je 0x41eb72
mov eax, dword [esp + 0x5c]
cmp word [eax + 0x16], 0
jne 0x41eb72
movzx edx, byte [eax + 9]
mov eax, dword [esp + 0x74]
cmp dx, word [eax + 0x14]
ja 0x41eb72
mov edi, eax
call fcn.004179c0
mov ebx, dword [esp + 0x5c]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
push ecx
mov eax, edi
call fcn.0041d9f0
add esp, 4
cmp dword [esp + 0x18], 0
jne 0x41ebb8
mov edx, dword [edi + 4]
mov ecx, dword [edi + 0x34]
push edx
mov eax, edi
call fcn.0041c560
add esp, 4
mov dword [esp + 0x18], eax
jmp 0x41ebb8
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x11], 0
je 0x41ebb8
cmp word [esp + 0x54], 0
jne 0x41ebb8
xor esi, esi
cmp dword [esp + 0x20], esi
jle 0x41ebb8
mov edi, dword [esp + 0x20]
mov ebx, eax
mov eax, dword [esp + esi*4 + 0x74]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 8]
lea ecx, [esp + 0x18]
push ecx
push edx
push 5
bswap eax
mov ecx, ebx
call fcn.00417460
inc esi
add esp, 0xc
cmp esi, edi
jl 0x41eb92
mov esi, dword [esp + 0x20]
cmp esi, dword [esp + 0x30]
jge 0x41ec31
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
lea ebx, [ebx]
mov eax, dword [esp + esi*4 + 0x60]
test ecx, ecx
jne 0x41ebe9
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [eax + 0x34]
call fcn.0041c560
add esp, 4
mov ecx, eax
inc esi
cmp esi, edi
jl 0x41ebd0
mov dword [esp + 0x18], ecx
jmp 0x41ec31
push 0x4b83a0
push 0x1013a
push 0x4b8578
push 0x4b855c
push 0xb
call fcn.00406270
add esp, 0x14
lea edx, [ebx*4 + 4]
push edx
push 0
lea eax, [esp + 0x68]
mov dword [esp + 0x20], 0xb
push eax
call fcn.004a6b70
add esp, 0xc
mov esi, dword [esp + 0x40]
call fcn.00403fe0
xor edi, edi
mov dword [esp + 0xc], edi
cmp dword [esp + 0x30], edi
jle 0x41ecd4
mov eax, dword [esp + edi*4 + 0x60]
test eax, eax
je 0x41ecc5
mov eax, dword [eax + 0x48]
test byte [eax + 0x18], 0x20
mov esi, dword [eax + 0x10]
je 0x41eca2
dec dword [esi + 0x80]
mov ecx, dword [esi + 0x90]
mov dword [eax + 0xc], ecx
mov edi, dword [esi + 0x40]
mov dword [esi + 0x90], eax
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0xa0]
mov ebx, dword [edi]
push edx
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.004a8b20
push edx
mov edx, dword [ebx + 0x48]
push eax
push edi
call edx
mov edi, dword [esp + 0x1c]
add esp, 0x10
jmp 0x41eca7
call fcn.0040d020
cmp dword [esi + 0x80], 0
jne 0x41ecc5
mov eax, dword [esi + 0xd8]
cmp dword [eax + 0xc], 0
jne 0x41ecc5
push esi
call fcn.0040fae0
add esp, 4
inc edi
mov dword [esp + 0xc], edi
cmp edi, dword [esp + 0x30]
jl 0x41ec4a
xor edi, edi
mov dword [esp + 0xc], edi
cmp dword [esp + 0x20], edi
jle 0x41ed6e
mov eax, dword [esp + edi*4 + 0x74]
test eax, eax
je 0x41ed5f
mov eax, dword [eax + 0x48]
test byte [eax + 0x18], 0x20
mov esi, dword [eax + 0x10]
je 0x41ed3c
dec dword [esi + 0x80]
mov ecx, dword [esi + 0x90]
mov dword [eax + 0xc], ecx
mov edi, dword [esi + 0x40]
mov dword [esi + 0x90], eax
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0xa0]
mov ebx, dword [edi]
push edx
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.004a8b20
push edx
mov edx, dword [ebx + 0x48]
push eax
push edi
call edx
mov edi, dword [esp + 0x1c]
add esp, 0x10
jmp 0x41ed41
call fcn.0040d020
cmp dword [esi + 0x80], 0
jne 0x41ed5f
mov eax, dword [esi + 0xd8]
cmp dword [eax + 0xc], 0
jne 0x41ed5f
push esi
call fcn.0040fae0
add esp, 4
inc edi
mov dword [esp + 0xc], edi
cmp edi, dword [esp + 0x20]
jl 0x41ece4
mov ecx, dword [esp + 0x10c]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a3bc8
mov esp, ebp
pop ebp
ret