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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x18], ebx
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], eax
cmp dword [ebp + 0x10], ebx
jne 0x41c7d7
pop edi
lea eax, [ebx + 7]
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, word [edi + 0x12]
movzx edx, byte [edi + 1]
push esi
lea esi, [edx + ecx]
cmp esi, 2
jae 0x41c7ef
xor eax, eax
mov dword [ebp - 0x44], eax
jmp 0x41c81d
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x41c7fb
mov dword [ebp - 0x44], ebx
jmp 0x41c810
cmp eax, esi
jne 0x41c80c
mov eax, dword [ebp + 0x18]
add esi, 0xfffffffe
add esi, eax
mov dword [ebp - 0x44], esi
jmp 0x41c813
dec eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x18]
mov esi, 2
sub esi, eax
mov eax, dword [ebp - 0x44]
sub eax, edx
mov dword [ebp - 0x84], esi
lea edi, [esi + 1]
mov dword [ebp - 0x38], edi
mov edi, dword [ebp + 8]
lea edx, [eax + esi]
cmp edx, ecx
jne 0x41c843
mov edx, dword [edi + 0x38]
movzx ecx, byte [edi + 6]
add edx, 8
add edx, ecx
jmp 0x41c862
mov eax, dword [edi + 0x40]
movzx ecx, byte [eax + edx*2 + 1]
movzx eax, byte [eax + edx*2]
mov edx, ecx
shl eax, 8
or edx, eax
mov dword [ebp - 0x5c], ecx
movzx eax, word [edi + 0x14]
and edx, eax
add edx, dword [edi + 0x38]
movzx ecx, byte [edx]
lea edi, [ebp - 0x7c]
movzx eax, byte [edx + 1]
lea edi, [edi + esi*4]
shl ecx, 8
or ecx, eax
mov dword [ebp - 0x5c], edx
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 3]
push 0
shl ecx, 8
or ecx, eax
push edi
push ecx
push dword [ebp - 0x20]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x58], ecx
call fcn.0042e550
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x41d458
nop dword [eax]
mov eax, dword [edi]
mov edx, esi
mov dword [ebp - 0x30], edx
movzx ecx, word [eax + 0x12]
movzx eax, byte [eax + 1]
inc eax
add eax, ebx
add ecx, eax
mov eax, esi
dec esi
mov dword [ebp - 0x48], ecx
test eax, eax
je 0x41ca6f
mov ebx, dword [ebp - 0x44]
mov edi, dword [ebp + 8]
lea ecx, [ebx + esi]
movzx eax, word [edi + 0x16]
cmp ecx, eax
jne 0x41c938
cmp byte [edi + 1], 0
je 0x41c938
mov ecx, dword [edi + 0x20]
lea ebx, [esi*4]
push ecx
push edi
mov dword [ebp + ebx - 0x8c], ecx
movzx eax, byte [ecx]
movzx edx, byte [ecx + 1]
shl eax, 8
or edx, eax
movzx eax, byte [ecx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 3]
shl edx, 8
or edx, eax
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x58], edx
call fcn.0041ef80
movzx eax, ax
add esp, 8
mov dword [ebp + ebx - 0x70], eax
mov byte [edi + 1], 0
jmp 0x41ca0b
movzx eax, byte [edi + 1]
mov ecx, ebx
sub ecx, eax
mov eax, dword [edi + 0x40]
add ecx, edx
movzx ebx, byte [eax + ecx*2 - 2]
movzx eax, byte [eax + ecx*2 - 1]
lea ecx, [ebp - 0x8c]
shl ebx, 8
or ebx, eax
movzx eax, word [edi + 0x14]
mov edi, dword [edi + 0x38]
and ebx, eax
lea eax, [edx*4 - 4]
add edi, ebx
mov dword [ebp - 0x14], eax
add eax, ecx
mov dword [ebp - 0xc], eax
push edi
movzx ecx, byte [edi + 1]
push dword [ebp + 8]
mov dword [eax], edi
movzx eax, byte [edi]
shl eax, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 3]
shl ecx, 8
or ecx, eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x58], ecx
call fcn.0041ef80
mov edx, dword [ebp - 0x20]
add esp, 8
movzx ecx, ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], ecx
test byte [edx + 0x16], 4
mov dword [ebp + eax - 0x70], ecx
je 0x41c9e7
lea eax, [ecx + ebx]
cmp eax, dword [edx + 0x24]
jg 0x41ca38
mov eax, dword [ebp + 0x10]
push ecx
add eax, ebx
push edi
push eax
call fcn.004a1bf0
mov edx, dword [ebp + 8]
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x34]
sub edi, dword [edx + 0x38]
add edi, dword [ebp + 0x10]
mov dword [eax], edi
jmp 0x41c9ea
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
movzx eax, byte [edx + 1]
push ecx
mov ecx, dword [ebp - 0x44]
sub ecx, eax
mov eax, dword [ebp - 0x30]
dec eax
add eax, ecx
push eax
push edx
call fcn.00425910
mov ebx, dword [ebp - 0x14]
add esp, 0x10
mov eax, dword [ebp - 0x50]
lea edi, [ebp - 0x7c]
push 0
add edi, ebx
push edi
push eax
push dword [ebp - 0x20]
call fcn.0042e550
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x41d458
mov ebx, dword [ebp - 0x48]
jmp 0x41c8b0
push 0x4c8db4
push 0xe4ba
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.004190b0
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 8], 0xb
push eax
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.004a2550
add esp, 0x1c
jmp 0x41d46e
mov ebx, dword [ebp - 0x20]
lea esi, [ecx + 3]
and esi, 0xfffffffc
mov edx, dword [ebx + 0x20]
lea eax, [edx + 0x50]
mov ecx, eax
mov dword [ebp - 0x40], eax
imul ecx, dword [ebp - 0x38]
lea eax, [esi + esi*2]
add ecx, edx
lea eax, [ecx + eax*2]
push eax
call fcn.00460a30
add esp, 4
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x41caab
mov dword [ebp - 8], 7
jmp 0x41d46e
mov edx, dword [ebp - 0x7c]
lea eax, [eax + esi*4]
lea ecx, [eax + esi*2]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x34], ecx
movzx eax, byte [edx + 5]
shl ax, 2
movzx eax, ax
mov dword [ebp - 0x48], eax
mov al, byte [edx + 3]
xor edx, edx
mov byte [ebp - 1], al
movzx eax, al
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x38], edx
jle 0x41ccce
xor eax, eax
xor esi, esi
mov dword [ebp - 0x30], eax
nop dword [eax]
lea edi, [eax + ecx]
add edi, dword [ebx + 0x20]
lea eax, [edx*4]
mov ecx, dword [ebp + eax - 0x7c]
mov dword [ebp - 0x54], eax
mov dword [ebp + eax - 0x98], edi
movups xmm0, xmmword [ecx]
movups xmmword [edi], xmm0
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [ecx + 0x20]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [ecx + 0x30]
movups xmmword [edi + 0x30], xmm0
movq xmm0, qword [ecx + 0x40]
movq qword [edi + 0x40], xmm0
mov eax, dword [ecx + 0x48]
mov dword [edi + 0x48], eax
lea eax, [edi + 0x4c]
mov dword [edi + 0x38], eax
push dword [ebx + 0x20]
push dword [ecx + 0x38]
push eax
call fcn.004a1bf0
mov dl, byte [edi + 1]
add esp, 0xc
movzx ecx, word [edi + 0x12]
movzx eax, dl
add eax, ecx
mov dword [ebp - 0x2c], eax
test dl, dl
je 0x41cbd9
xor ebx, ebx
test eax, eax
je 0x41cc31
nop dword [eax + eax]
movzx eax, byte [edi + 1]
mov ecx, ebx
sub eax, 1
js 0x41cb93
lea esi, [eax + 0xb]
lea esi, [edi + esi*2]
movzx edx, word [esi]
cmp edx, ecx
jg 0x41cb8b
je 0x41cbd3
dec ecx
sub esi, 2
sub eax, 1
jns 0x41cb81
mov eax, dword [edi + 0x40]
movzx edx, byte [eax + ecx*2 + 1]
movzx eax, byte [eax + ecx*2]
shl eax, 8
or edx, eax
movzx eax, word [edi + 0x14]
and edx, eax
add edx, dword [edi + 0x38]
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x1c]
push edx
push edi
mov dword [eax + esi*4], edx
call fcn.0041ef80
mov ecx, dword [ebp - 0x24]
inc ebx
add esp, 8
mov word [ecx + esi*2], ax
inc esi
mov dword [ebp - 0x1c], esi
cmp ebx, dword [ebp - 0x2c]
jl 0x41cb70
jmp 0x41cc31
mov edx, dword [edi + eax*4 + 0x20]
jmp 0x41cbad
cmp dword [ebp - 0x2c], 0
mov ebx, dword [edi + 0x38]
movzx eax, word [edi + 0x14]
movzx ecx, word [edi + 0xe]
jbe 0x41cc31
mov edx, eax
lea esi, [ebx + ecx]
mov dword [ebp - 0x80], edx
movzx eax, byte [esi]
movzx ecx, byte [esi + 1]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp - 0x28]
and eax, edx
mov edx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edi
mov dword [ecx + edx*4], eax
call fcn.0041ef80
mov ecx, dword [ebp - 0x1c]
lea esi, [esi + 2]
mov edx, dword [ebp - 0x24]
add esp, 8
mov word [edx + ecx*2], ax
inc ecx
sub dword [ebp - 0x2c], 1
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x1c], ecx
jne 0x41cbf2
mov esi, ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x84]
jge 0x41ccb2
cmp byte [ebp - 1], 0
jne 0x41ccb2
mov ecx, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x24]
movzx eax, word [ebp + ecx - 0x70]
mov word [ebx + esi*2], ax
mov esi, dword [ebp - 0x18]
add esi, dword [ebp - 0x34]
add dword [ebp - 0x18], eax
push eax
push dword [ebp + ecx - 0x8c]
push esi
call fcn.004a1bf0
mov ecx, dword [ebp - 0x48]
add esp, 0xc
mov edx, dword [ebp - 0x28]
movzx eax, cx
add eax, esi
mov esi, dword [ebp - 0x1c]
mov dword [edx + esi*4], eax
mov ax, word [ebx + esi*2]
sub ax, cx
mov word [ebx + esi*2], ax
cmp byte [edi + 5], 0
movzx ecx, ax
jne 0x41cc9d
mov eax, dword [edi + 0x38]
mov ecx, dword [edx + esi*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x41ccab
cmp ecx, 4
jae 0x41ccab
mov eax, 4
mov word [ebx + esi*2], ax
mov edx, dword [ebp - 0x14]
inc esi
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x30]
inc edx
add eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x30], eax
cmp edx, dword [ebp - 0x38]
jl 0x41caf0
mov eax, dword [ebp - 0x48]
xor ecx, ecx
movzx edi, ax
xor esi, esi
add edi, 0xfffffff4
xor edx, edx
add edi, dword [ebx + 0x24]
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
jle 0x41cd29
nop word [eax + eax]
mov eax, dword [ebp - 0x24]
add edx, 2
movzx eax, word [eax + ecx*2]
add edx, eax
cmp edx, edi
jle 0x41cd24
sub edx, eax
mov dword [ebp + esi*4 - 0xac], ecx
mov dword [ebp + esi*4 - 0x70], edx
inc esi
xor edx, edx
cmp esi, 4
jg 0x41cdbd
cmp byte [ebp - 1], dl
lea eax, [ecx - 1]
cmove eax, ecx
mov ecx, eax
inc ecx
cmp ecx, ebx
jl 0x41ccf0
mov eax, esi
mov dword [ebp + esi*4 - 0x70], edx
mov dword [ebp + esi*4 - 0xac], ebx
mov ecx, eax
inc esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x18], eax
test ecx, ecx
jle 0x41cdff
nop word [eax + eax]
mov esi, dword [ebp + ecx*4 - 0x70]
mov eax, dword [ebp + ecx*4 - 0x74]
mov ebx, dword [ebp + ecx*4 - 0xb0]
lea edi, [ebx - 1]
mov dword [ebp - 0x14], eax
mov edx, edi
sub edx, dword [ebp - 0xc]
inc edx
test esi, esi
je 0x41cd94
cmp dword [ebp + 0x18], 0
jne 0x41cde8
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
movzx eax, word [eax + edi*2]
sub ecx, eax
mov eax, dword [ebp - 0x24]
sub ecx, 2
movzx eax, word [eax + edx*2]
add eax, 2
add eax, esi
cmp eax, ecx
jg 0x41cde2
mov ecx, dword [ebp - 0x24]
movzx eax, word [ecx + edx*2]
add eax, 2
add esi, eax
movzx eax, word [ecx + edi*2]
mov ecx, 0xfffffffe
sub ecx, eax
mov eax, dword [ebp - 0x14]
add eax, ecx
mov ecx, dword [ebp - 0x18]
dec ebx
mov dword [ebp + ecx*4 - 0xb0], ebx
jmp 0x41cd5f
push 0x4c8db4
push 0xe545
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.004190b0
add esp, 0x10
mov dword [ebp - 8], 0xb
jmp 0x41d46e
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [ebp + ecx*4 - 0x70], esi
mov dword [ebp + ecx*4 - 0x74], eax
dec ecx
mov dword [ebp - 0x18], ecx
test ecx, ecx
jg 0x41cd50
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x7c]
cmp dword [eax + 0x48], 1
ja 0x41ce14
push 0x4c8db4
push 0xe583
jmp 0x41cdc7
mov eax, dword [eax + 0x38]
xor ebx, ebx
movzx eax, byte [eax]
mov dword [ebp - 0x14], eax
test esi, esi
jle 0x41cefe
lea ecx, [ebx + 1]
nop word [eax + eax]
cmp ebx, dword [ebp - 0x38]
jge 0x41ce81
mov eax, dword [ebp + ebx*4 - 0x7c]
mov dword [ebp + ebx*4 - 0x70], eax
mov dword [ebp - 0xc], eax
mov dword [ebp + ebx*4 - 0x7c], 0
mov edx, dword [eax + 0x44]
push edx
mov ecx, dword [edx + 0x10]
mov eax, dword [ecx + 0x94]
cmp eax, dword [ecx + 0x98]
jbe 0x41ce64
call fcn.004355a0
jmp 0x41ce69
call fcn.00436660
inc dword [ebp - 0x3c]
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x41d46e
jmp 0x41cef0
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp - 0x50]
push 0
cmovne eax, ecx
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x20]
call fcn.00419ce0
mov edi, eax
add esp, 0x14
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x41d46e
mov edx, dword [ebp - 0x20]
inc dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
mov dword [ebp + ebx*4 - 0x70], eax
cmp byte [edx + 0x11], 0
je 0x41ceea
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
push dword [ecx + 0x48]
push 5
push dword [eax + 0x48]
push edx
call fcn.00438900
mov edi, dword [ebp - 0x10]
add esp, 0x14
mov dword [ebp - 8], edi
test edi, edi
jne 0x41d46e
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x50], eax
inc ebx
mov ecx, 1
cmp ebx, esi
jl 0x41ce30
cmp ebx, dword [ebp - 0x38]
jge 0x41cfc5
mov edi, dword [ebp - 8]
nop word [eax + eax]
mov esi, dword [ebp + ebx*4 - 0x7c]
test edi, edi
jne 0x41d46e
push dword [esi + 0x48]
push esi
push dword [esi + 0x34]
call fcn.0042c840
mov edi, eax
add esp, 0xc
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x41d46e
mov ecx, dword [esi + 0x44]
test byte [ecx + 0x18], 0x40
mov esi, dword [ecx + 0x10]
mov dword [ebp - 0xc], esi
je 0x41cf8f
dec dword [esi + 0x78]
mov eax, dword [esi + 0x88]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x88], ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x14]
mov eax, dword [eax + 0x98]
dec ecx
mov esi, dword [esi + 0x3c]
cdq
push edx
push eax
mov edi, dword [esi]
push 0
push ecx
call fcn.004a0ab0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [ebp - 0xc]
add esp, 0x10
mov edi, dword [ebp - 8]
jmp 0x41cf98
push ecx
call fcn.0045a8c0
add esp, 4
cmp dword [esi + 0x78], 0
jne 0x41cfb3
mov eax, dword [esi + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x41cfb3
push esi
call fcn.00435450
add esp, 4
mov dword [ebp + ebx*4 - 0x7c], 0
inc ebx
cmp ebx, dword [ebp - 0x38]
jl 0x41cf10
xor eax, eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x30], eax
jle 0x41d030
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x70]
mov ebx, eax
lea edx, [edx + eax*4]
inc eax
mov dword [ebp - 0x40], edx
mov edi, eax
mov edx, dword [edx]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0xc], eax
mov esi, dword [edx + 0x48]
cmp eax, ecx
jge 0x41d028
nop
mov eax, dword [ebp + edi*4 - 0x70]
mov ecx, esi
mov edx, ebx
mov ebx, edi
mov eax, dword [eax + 0x48]
cmp eax, esi
cmovb esi, eax
cmp eax, ecx
cmovae ebx, edx
inc edi
cmp edi, dword [ebp - 0x2c]
jl 0x41cff0
cmp ebx, dword [ebp - 0x34]
jle 0x41d022
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp + ebx*4 - 0x70]
mov dword [ecx], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp + ebx*4 - 0x70], eax
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
cmp eax, dword [ebp - 0x30]
jl 0x41cfd2
mov ebx, dword [ebp - 0x3c]
xor edi, edi
mov esi, dword [ebp - 0x5c]
mov edx, dword [ebp + ebx*4 - 0x74]
mov dword [ebp - 0x54], 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
mov byte [esi + 3], cl
xor esi, esi
mov dword [ebp - 0xc], esi
test ebx, ebx
jle 0x41d1d1
nop dword [eax]
push dword [ebp - 0x14]
mov ebx, dword [ebp + esi*4 - 0x70]
push ebx
mov dword [ebp - 0x40], ebx
call fcn.004893c0
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp + esi*4 - 0xac]
lea eax, [eax + edi*2]
push eax
mov eax, dword [ebp - 0x28]
lea eax, [eax + edi*4]
push eax
mov eax, esi
sub eax, edi
push eax
push ebx
call fcn.0041bd70
mov edi, esi
add esp, 0x18
cmp edi, dword [ebp - 0x1c]
jge 0x41d1be
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x48]
movzx edx, bx
mov ebx, dword [ebp - 0x40]
mov esi, dword [eax + edi*4]
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + edi*2]
mov eax, dword [ebp - 0x4c]
add edx, ecx
add eax, dword [ebp + 0x10]
cmp byte [ebx + 5], 0
mov dword [ebp - 0x18], eax
jne 0x41d0e2
mov ecx, dword [ebx + 0x38]
mov eax, dword [esi]
mov dword [ecx + 8], eax
jmp 0x41d18c
cmp byte [ebp - 1], 0
je 0x41d175
lea eax, [ebp - 0xc4]
dec edi
push eax
mov eax, dword [ebp - 0x28]
push dword [eax + edi*4]
push ebx
call fcn.0041e9e0
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov edx, dword [ebp - 0xc0]
mov esi, eax
mov ecx, dword [ebp - 0xc4]
add eax, 4
mov dword [ebp - 0x40], eax
test edx, edx
ja 0x41d163
jb 0x41d125
cmp ecx, 0x7f
ja 0x41d136
and cl, 0x7f
mov byte [eax], cl
mov eax, 1
lea edx, [eax + 4]
xor eax, eax
jmp 0x41d18f
test edx, edx
ja 0x41d163
jb 0x41d144
cmp ecx, 0x3fff
ja 0x41d163
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
mov edx, dword [ebp - 0x40]
or al, 0x80
mov byte [edx], al
mov eax, 2
mov byte [edx + 1], cl
lea edx, [eax + 4]
xor eax, eax
jmp 0x41d18f
push edx
push ecx
push eax
call fcn.00438dd0
add esp, 0xc
lea edx, [eax + 4]
xor eax, eax
jmp 0x41d18f
sub esi, 4
cmp ecx, 4
jne 0x41d18f
push esi
push dword [ebp + 8]
call fcn.0041ef80
add esp, 8
movzx edx, ax
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x4c], edx
lea ecx, [ebp - 0x10]
push ecx
push dword [ebx + 0x48]
push eax
push edx
push esi
mov esi, dword [ebp - 0x44]
push esi
push dword [ebp + 8]
call fcn.0042f490
mov ebx, dword [ebp - 0x10]
add esp, 0x1c
mov dword [ebp - 8], ebx
test ebx, ebx
jne 0x41d46e
inc edi
inc esi
mov dword [ebp - 0x44], esi
mov esi, dword [ebp - 0xc]
inc esi
mov dword [ebp - 0xc], esi
cmp esi, dword [ebp - 0x3c]
jl 0x41d070
mov edx, dword [ebp - 0x54]
test byte [ebp - 0x14], 8
jne 0x41d1ed
mov eax, dword [ebp - 0x38]
mov ecx, dword [edx + 0x38]
mov eax, dword [ebp + eax*4 - 0x9c]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
cmp dword [ebp + 0x14], 0
mov ebx, dword [ebp - 0x70]
mov dword [ebp + 0x10], ebx
je 0x41d23d
mov ecx, dword [ebp + 8]
cmp word [ecx + 0x12], 0
jne 0x41d23d
movzx eax, byte [ecx + 6]
cmp ax, word [ebx + 0x10]
ja 0x41d23d
lea eax, [ebp - 0x10]
push eax
push ecx
push ebx
call fcn.00424830
mov edi, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 8], edi
test edi, edi
jne 0x41d46e
push dword [ebx + 0x48]
push ebx
push dword [ebx + 0x34]
call fcn.0042c840
mov dword [ebp - 8], eax
jmp 0x41d46b
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x11], 0
je 0x41d46e
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x18], ecx
movzx eax, byte [ecx + 1]
movzx esi, word [ecx + 0x12]
add esi, eax
mov dword [ebp + 8], eax
test eax, eax
je 0x41d26a
movzx edi, word [ecx + 0x16]
jmp 0x41d26d
or edi, 0xffffffff
mov edx, dword [ebp - 0x1c]
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x34], eax
test edx, edx
jle 0x41d3fd
mov dword [ebp - 0x30], eax
xor edx, edx
cmp ebx, esi
jne 0x41d2cc
cmp byte [ebp - 1], dl
sete dl
mov ecx, dword [ebp + eax*4 - 0x94]
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x18], ecx
mov al, byte [ecx + 1]
movzx esi, al
mov dword [ebp - 0xc], esi
movzx esi, word [ecx + 0x12]
add esi, edx
add esi, dword [ebp - 0xc]
add esi, ebx
test al, al
je 0x41d2c5
movzx edi, word [ecx + 0x16]
mov eax, dword [ebp - 0xc]
add edi, edx
mov dword [ebp + 8], eax
add edi, ebx
mov eax, dword [ebp - 0x4c]
cmp ebx, esi
je 0x41d291
cmp ebx, edi
jne 0x41d2e1
mov eax, dword [ebp + 8]
mov edx, 1
dec eax
mov dword [ebp + 8], eax
test eax, eax
jle 0x41d2e1
inc edi
mov eax, dword [ebp - 0x30]
cmp ebx, dword [ebp + eax - 0xac]
jne 0x41d30b
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
shl eax, 2
cmp byte [ebp - 1], 0
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + eax - 0x70]
mov dword [ebp + 0x10], eax
je 0x41d3ed
test edx, edx
jne 0x41d320
mov eax, dword [ecx + 0x48]
mov ecx, dword [ebp + 0x10]
cmp eax, dword [ecx + 0x48]
je 0x41d3ed
jmp 0x41d323
mov ecx, dword [ebp + 0x10]
cmp word [ebp - 0x48], 0
jne 0x41d36b
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + ebx*4]
lea eax, [ebp - 0x10]
push eax
push dword [ecx + 0x48]
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 3]
shl ecx, 8
push 5
or ecx, eax
push ecx
push dword [ebp - 0x20]
call fcn.00438900
mov edx, dword [ebp - 0x10]
add esp, 0x14
mov dword [ebp - 8], edx
jmp 0x41d36e
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0x10]
mov ax, word [eax + ebx*2]
cmp ax, word [ecx + 0xc]
jbe 0x41d3ed
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x40], eax
test edx, edx
jne 0x41d3ed
lea edx, [ebp - 0xc4]
push edx
push eax
push ecx
call fcn.0041e9e0
mov ax, word [ebp - 0xb2]
add esp, 0xc
test ax, ax
je 0x41d3ed
movzx edx, ax
lea eax, [ebp - 0x10]
add edx, dword [ebp - 0x40]
push eax
mov eax, dword [ebp + 0x10]
movzx ecx, byte [edx + 1]
push dword [eax + 0x48]
movzx eax, byte [edx]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 0x10]
push 3
push ecx
push dword [eax + 0x34]
call fcn.00438900
mov eax, dword [ebp - 0x10]
add esp, 0x14
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x18]
inc ebx
mov eax, dword [ebp - 0x4c]
cmp ebx, dword [ebp - 0x1c]
jl 0x41d285
cmp word [ebp - 0x48], 0
jne 0x41d46e
mov ebx, dword [ebp - 0x3c]
xor esi, esi
test ebx, ebx
jle 0x41d46e
nop dword [eax]
mov eax, dword [ebp + esi*4 - 0x70]
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [eax + 0x38]
push dword [eax + 0x48]
push 5
movzx eax, byte [edx + 8]
movzx ecx, byte [edx + 9]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xb]
shl ecx, 8
or ecx, eax
push ecx
push dword [ebp - 0x20]
call fcn.00438900
inc esi
add esp, 0x14
cmp esi, ebx
jl 0x41d410
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x41d46e
lea eax, [esi*4 + 4]
push eax
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.004a2550
add esp, 0xc
push dword [ebp - 0x28]
call fcn.00460900
mov edi, dword [ebp - 0x38]
xor esi, esi
add esp, 4
mov dword [ebp + 8], esi
test edi, edi
jle 0x41d516
nop dword [eax]
mov ecx, dword [ebp + esi*4 - 0x7c]
test ecx, ecx
je 0x41d50a
mov ecx, dword [ecx + 0x44]
test byte [ecx + 0x18], 0x40
mov ebx, dword [ecx + 0x10]
je 0x41d4e6
dec dword [ebx + 0x78]
mov eax, dword [ebx + 0x88]
mov dword [ecx + 0xc], eax
mov eax, dword [ebx + 0x98]
mov esi, dword [ebx + 0x3c]
mov dword [ebx + 0x88], ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x14]
mov edi, dword [esi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.004a0ab0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [ebp + 8]
add esp, 0x10
mov edi, dword [ebp - 0x38]
jmp 0x41d4ef
push ecx
call fcn.0045a8c0
add esp, 4
cmp dword [ebx + 0x78], 0
jne 0x41d50a
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x41d50a
push ebx
call fcn.00435450
add esp, 4
inc esi
mov dword [ebp + 8], esi
cmp esi, edi
jl 0x41d490
mov edi, dword [ebp - 0x3c]
xor esi, esi
mov dword [ebp + 8], esi
test edi, edi
jle 0x41d5ac
mov ecx, dword [ebp + esi*4 - 0x70]
test ecx, ecx
je 0x41d5a0
mov ecx, dword [ecx + 0x44]
test byte [ecx + 0x18], 0x40
mov ebx, dword [ecx + 0x10]
je 0x41d57c
dec dword [ebx + 0x78]
mov eax, dword [ebx + 0x88]
mov dword [ecx + 0xc], eax
mov eax, dword [ebx + 0x98]
mov esi, dword [ebx + 0x3c]
mov dword [ebx + 0x88], ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x14]
mov edi, dword [esi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.004a0ab0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [ebp + 8]
add esp, 0x10
mov edi, dword [ebp - 0x3c]
jmp 0x41d585
push ecx
call fcn.0045a8c0
add esp, 4
cmp dword [ebx + 0x78], 0
jne 0x41d5a0
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x41d5a0
push ebx
call fcn.00435450
add esp, 4
inc esi
mov dword [ebp + 8], esi
cmp esi, edi
jl 0x41d526
mov eax, dword [ebp - 8]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret