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

Disassembly:
sub esp, 0x138
push ebx
push ebp
push edi
xor ebx, ebx
mov dword [esp + 0x20], 0
push 0x40
lea eax, [esp + 0x8c]
mov dword [esp + 0x20], 0
xor ebp, ebp
mov dword [esp + 0x38], ebx
push ebx
push eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x84], ebx
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xd8], bl
call fcn.00423ff0
mov edi, dword [esp + 0x154]
add esp, 0xc
mov eax, dword [edi + 0x34]
mov dword [esp + 0x38], eax
cmp dword [esp + 0x150], ebx
jne 0x4dc325
pop edi
lea eax, [ebp + 7]
pop ebp
pop ebx
add esp, 0x138
ret
movzx ecx, word [edi + 0x18]
movzx edx, byte [edi + 0xc]
push esi
lea esi, [edx + ecx]
cmp esi, 2
jae 0x4dc33c
mov dword [esp + 0x44], ebx
jmp 0x4dc376
mov eax, dword [esp + 0x150]
test eax, eax
jne 0x4dc34d
mov dword [esp + 0x44], ebx
jmp 0x4dc368
cmp eax, esi
jne 0x4dc363
mov eax, dword [esp + 0x15c]
add esi, 0xfffffffe
add esi, eax
mov dword [esp + 0x44], esi
jmp 0x4dc36f
dec eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x15c]
mov esi, 2
sub esi, eax
lea eax, [esi + 1]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x44]
sub eax, edx
lea edx, [eax + esi]
cmp edx, ecx
jne 0x4dc397
movzx ecx, byte [edi + 9]
add ecx, 8
jmp 0x4dc3ab
mov eax, dword [edi + 0x40]
mov ax, word [eax + edx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [edi + 0x38]
mov dword [esp + 0x40], ecx
mov ecx, dword [ecx]
bswap ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x58], ecx
nop
lea edi, [esi*4]
test ebp, ebp
jne 0x4dd68f
push ebp
lea eax, [esp + 0x60]
add eax, edi
push eax
push ecx
push dword [esp + 0x48]
call fcn.0050d890
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], ebp
test ebp, ebp
jne 0x4dd68f
lea ebp, [esp + 0x5c]
mov eax, dword [ebp + edi]
cmp dword [eax + 0x14], ebx
jge 0x4dc41c
push eax
call fcn.004de410
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4dc559
mov eax, dword [ebp + edi]
mov ebp, dword [esp + 0x24]
add ebp, 4
movzx eax, word [eax + 0x18]
add ebp, eax
mov eax, esi
dec esi
mov dword [esp + 0x24], ebp
test eax, eax
je 0x4dc574
mov ebp, dword [esp + 0x14c]
mov dl, byte [ebp + 0xc]
test dl, dl
je 0x4dc492
mov ecx, dword [esp + 0x44]
movzx eax, word [ebp + 0x1c]
add ecx, esi
cmp ecx, eax
jne 0x4dc492
mov eax, dword [ebp + 0x24]
push eax
mov dword [esp + esi*4 + 0x104], eax
push ebp
mov ecx, dword [eax]
mov eax, dword [ebp + 0x4c]
bswap ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x60], ecx
call eax
mov ecx, dword [esp + 0x58]
add esp, 8
movzx eax, ax
mov byte [ebp + 0xc], bl
mov ebp, dword [esp + 0x14]
mov dword [esp + esi*4 + 0xe8], eax
jmp 0x4dc3c0
mov ecx, dword [esp + 0x44]
movzx eax, dl
sub ecx, eax
mov eax, dword [ebp + 0x40]
add ecx, esi
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebp + 0x1a]
movzx edi, cx
and edi, eax
add edi, dword [ebp + 0x38]
push edi
push ebp
mov dword [esp + esi*4 + 0x108], edi
mov eax, dword [edi]
bswap eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x4c]
call eax
mov edx, dword [esp + 0x44]
add esp, 8
movzx ebp, ax
mov dword [esp + esi*4 + 0xe8], ebp
test byte [edx + 0x18], 0xc
je 0x4dc525
mov eax, dword [esp + 0x14c]
mov ecx, edi
sub ecx, dword [eax + 0x38]
lea eax, [ecx + ebp]
cmp eax, dword [edx + 0x28]
jg 0x4dc525
mov eax, dword [esp + 0x154]
push ebp
add eax, ecx
push edi
push eax
call fcn.00427770
mov eax, dword [esp + 0x158]
add esp, 0xc
sub edi, dword [eax + 0x38]
add edi, dword [esp + 0x154]
mov dword [esp + esi*4 + 0x100], edi
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x28]
push eax
push ebp
mov ebp, dword [esp + 0x154]
movzx eax, byte [ebp + 0xc]
sub ecx, eax
add ecx, esi
push ecx
push ebp
call fcn.004e8370
mov ebp, dword [esp + 0x38]
add esp, 0x10
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x14], ebp
jmp 0x4dc3c0
push edi
lea eax, [esp + 0x60]
push 0
push eax
call fcn.00423ff0
mov ebp, dword [esp + 0x20]
add esp, 0xc
xor ebx, ebx
jmp 0x4dcf51
mov eax, dword [esp + 0x3c]
lea esi, [ebp + 3]
and esi, 0xfffffffc
mov eax, dword [eax + 0x24]
lea ecx, [esi + esi*2]
lea eax, [eax + ecx*2]
cdq
push edx
push eax
call fcn.00557720
mov ebp, eax
add esp, 8
mov dword [esp + 0x94], ebp
test ebp, ebp
jne 0x4dc5a9
lea ebp, [eax + 7]
xor ebx, ebx
jmp 0x4dcf51
mov ecx, dword [esp + 0x5c]
lea eax, [esi*4]
add eax, ebp
mov dword [esp + 0x90], ecx
mov dword [esp + 0x98], eax
lea eax, [eax + esi*2]
mov dword [esp + 0x30], eax
movzx eax, byte [ecx + 8]
shl ax, 2
movzx eax, ax
mov dword [esp + 0x54], eax
mov al, byte [ecx + 2]
mov byte [esp + 0x13], al
movzx eax, al
mov dword [esp + 0x88], eax
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [esp + 0x1c], eax
jle 0x4dc823
mov ebp, dword [esp + 0x8c]
shl eax, 2
mov dword [esp + 0x84], eax
mov edi, dword [esp + eax + 0x5c]
mov dword [esp + 0x2c], edi
movzx eax, word [edi + 0x18]
mov edx, dword [edi + 0x38]
movzx esi, word [edi + 0x12]
mov dword [esp + 0x24], eax
add esi, edx
movzx eax, word [edi + 0x1a]
mov ecx, eax
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xfc], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x48], esi
mov ecx, dword [eax + 0x38]
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x4dc9bc
movzx eax, byte [edi + 0xc]
add eax, dword [esp + 0x24]
add eax, eax
push eax
mov eax, dword [esp + 0x9c]
push 0
lea eax, [eax + ebp*2]
push eax
call fcn.00423ff0
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x4dc709
movzx edx, word [edi + 0x1c]
cmp dword [esp + 0x24], edx
jb 0x4dc992
test edx, edx
je 0x4dc6d7
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0xfc]
nop dword [eax]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
movzx eax, bx
movzx ecx, cx
and ecx, eax
mov eax, dword [esp + 0x94]
add ecx, edi
mov dword [eax + ebp*4], ecx
inc ebp
sub edx, 1
jne 0x4dc6a0
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x48], esi
xor edx, edx
cmp byte [edi + 0xc], dl
jbe 0x4dc709
mov esi, dword [esp + 0x94]
lea ecx, [edi + 0x24]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
mov dword [esi + ebp*4], eax
inc edx
movzx eax, byte [edi + 0xc]
inc ebp
cmp edx, eax
jl 0x4dc6e8
mov esi, dword [esp + 0x48]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x8c], ebp
movzx eax, word [edi + 0x12]
add eax, dword [esp + 0x34]
movzx ecx, word [edi + 0x18]
lea edx, [eax + ecx*2]
cmp esi, edx
jae 0x4dc759
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x80]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
movzx eax, bx
movzx ecx, cx
and ecx, eax
mov eax, dword [esp + 0x94]
add ecx, edi
mov dword [eax + ebp*4], ecx
inc ebp
cmp esi, edx
jb 0x4dc727
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x8c], ebp
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x18]
mov dword [esp + edx + 0x108], ebp
cmp eax, dword [esp + 0x4c]
jge 0x4dc814
cmp byte [esp + 0x13], 0
jne 0x4dc814
movzx eax, word [esp + edx + 0xe8]
mov ecx, dword [esp + 0x98]
mov esi, dword [esp + 0x30]
push eax
push dword [esp + edx + 0x104]
add esi, ebx
mov word [ecx + ebp*2], ax
add ebx, eax
push esi
mov dword [esp + 0x44], ebx
call fcn.00427770
mov ecx, dword [esp + 0x60]
add esp, 0xc
mov edx, dword [esp + 0x98]
movzx eax, cx
add eax, esi
mov esi, dword [esp + 0x94]
mov dword [esi + ebp*4], eax
mov ax, word [edx + ebp*2]
sub ax, cx
mov word [edx + ebp*2], ax
cmp byte [edi + 8], 0
movzx ecx, ax
jne 0x4dc7eb
mov eax, dword [edi + 0x38]
mov ecx, dword [esi + ebp*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x4dc808
cmp ecx, 4
jae 0x4dc808
mov eax, dword [esp + 0x30]
mov byte [eax + ebx], 0
inc ebx
inc word [edx + ebp*2]
cmp word [edx + ebp*2], 4
jb 0x4dc7f4
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x18]
inc ebp
mov dword [esp + 0x8c], ebp
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x1c]
jl 0x4dc602
mov eax, dword [esp + 0x54]
xor edx, edx
movzx ebp, ax
xor ebx, ebx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x30], ebx
mov eax, dword [eax + 0x28]
add eax, 0xfffffff4
add ebp, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], ebp
test eax, eax
jle 0x4dc92c
mov ecx, eax
lea esi, [esp + 0x108]
lea edi, [esp + 0xd4]
rep movsd dword es:[edi], dword [esi]
nop dword [eax]
nop dword [eax + eax]
mov esi, dword [esp + ebx*4 + 0x5c]
mov ecx, dword [esp + ebx*4 + 0x108]
mov eax, dword [esi + 0x3c]
mov dword [esp + edx*4 + 0x9c], eax
mov dword [esp + edx*4 + 0xb4], ecx
test edx, edx
je 0x4dc89e
cmp ecx, dword [esp + edx*4 + 0xb0]
jne 0x4dc89e
dec edx
mov dword [esp + 0x18], edx
cmp byte [esp + 0x13], 0
jne 0x4dc8c5
mov eax, dword [esp + 0x14c]
inc edx
mov dword [esp + 0x18], edx
mov eax, dword [eax + 0x3c]
mov dword [esp + edx*4 + 0x9c], eax
lea eax, [ecx + 1]
mov dword [esp + edx*4 + 0xb4], eax
mov edi, ebp
lea eax, [esp + 0xe8]
sub edi, dword [esi + 0x14]
lea eax, [eax + ebx*4]
xor ebp, ebp
mov dword [esp + 0x4c], eax
cmp byte [esi + 0xc], 0
mov dword [eax], edi
jbe 0x4dc912
lea ebx, [esi + 0x24]
push dword [ebx]
mov eax, dword [esi + 0x4c]
push esi
call eax
movzx eax, ax
lea ebx, [ebx + 4]
add eax, 2
inc ebp
add edi, eax
add esp, 8
movzx eax, byte [esi + 0xc]
cmp ebp, eax
jl 0x4dc8e5
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x30]
mov dword [eax], edi
mov eax, dword [esp + 0x1c]
inc ebx
mov ebp, dword [esp + 0x38]
inc edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], edx
cmp ebx, eax
jl 0x4dc870
mov ebx, dword [esp + 0x8c]
lea edx, [esp + 0xd4]
sub edx, 4
mov dword [esp + 0x24], 0
mov dword [esp + 0x48], edx
mov esi, eax
mov dword [esp + 0x2c], esi
test eax, eax
jle 0x4dcc29
mov edx, 1
xor ecx, ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x18], ecx
nop word [eax + eax]
lea eax, [esp + 0xe8]
add eax, ecx
mov dword [esp + 0x30], eax
mov edi, dword [eax]
cmp edi, ebp
jle 0x4dcad4
lea ebx, [esp + 0xec]
add ebx, ecx
jmp 0x4dc9f9
push 0x6128ec
push 0x13248
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004c6060
add esp, 0x14
mov ebp, 0xb
xor ebx, ebx
jmp 0x4dcf51
push 0x6128ec
push 0x13230
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004c6060
add esp, 0x14
mov ebp, 0xb
xor ebx, ebx
jmp 0x4dcf51
lea eax, [esp + 0xe8]
add eax, ecx
cmp edx, esi
jl 0x4dca23
inc edx
mov dword [esp + 0x2c], edx
cmp edx, 5
jg 0x4dcbcf
mov ebp, dword [esp + 0x8c]
mov dword [ebx], 0
mov edi, dword [eax]
mov dword [esp + ecx + 0xd8], ebp
jmp 0x4dca2a
mov ebp, dword [esp + 0x8c]
mov esi, dword [esp + ecx + 0xd4]
mov edx, dword [esp + 0x98]
lea ecx, [esi - 1]
mov dword [esp + 0x4c], ecx
movzx eax, word [edx + ecx*2]
test ax, ax
jne 0x4dca63
push ecx
lea eax, [esp + 0x90]
push eax
call fcn.004e4670
mov edx, dword [esp + 0xa0]
add esp, 8
movzx eax, ax
mov ecx, dword [esp + 0x30]
movzx eax, ax
add eax, 2
sub edi, eax
cmp byte [esp + 0x13], 0
mov dword [ecx], edi
jne 0x4dcaa3
cmp esi, ebp
jge 0x4dcaa1
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x4dca99
lea eax, [esp + 0x8c]
push esi
push eax
call fcn.004e4670
add esp, 8
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x4dcaa3
xor eax, eax
mov ecx, dword [esp + 0x18]
lea ebp, [esp + 0xd4]
add dword [ebx], eax
add ebp, ecx
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
mov dword [ebp], eax
cmp edi, dword [esp + 0x38]
jg 0x4dc9f0
mov ebx, dword [esp + 0x8c]
jmp 0x4dcadd
lea ebp, [esp + 0xd4]
add ebp, ecx
mov esi, dword [ebp]
cmp esi, ebx
jge 0x4dcb82
mov edx, dword [esp + 0x98]
nop
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x4dcb14
lea eax, [esp + 0x8c]
push esi
push eax
call fcn.004e4670
mov edx, dword [esp + 0xa0]
add esp, 8
movzx eax, ax
movzx eax, ax
add eax, 2
add edi, eax
cmp edi, dword [esp + 0x38]
jg 0x4dcb7a
mov ecx, dword [esp + 0x30]
inc esi
cmp byte [esp + 0x13], 0
mov dword [ebp], esi
mov dword [ecx], edi
jne 0x4dcb65
cmp esi, ebx
jge 0x4dcb63
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x4dcb5b
lea eax, [esp + 0x8c]
push esi
push eax
call fcn.004e4670
mov edx, dword [esp + 0xa0]
add esp, 8
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x4dcb65
xor eax, eax
mov ecx, dword [esp + 0x18]
sub dword [esp + ecx + 0xec], eax
cmp esi, ebx
jl 0x4dcaf0
jmp 0x4dcb7e
mov ecx, dword [esp + 0x18]
cmp esi, ebx
jl 0x4dcb92
mov edx, dword [esp + 0x34]
mov esi, edx
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x2c], esi
jmp 0x4dcbb1
mov ebp, dword [esp + 0x24]
test ebp, ebp
jle 0x4dcba3
mov eax, dword [esp + 0x48]
mov eax, dword [ecx + eax]
jmp 0x4dcba5
xor eax, eax
cmp esi, eax
jle 0x4dcbff
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
inc ebp
add ecx, 4
inc edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x34], edx
cmp ebp, esi
jge 0x4dcbf9
mov ebp, dword [esp + 0x38]
jmp 0x4dc970
push 0x6128ec
push 0x132ad
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004c6060
add esp, 0x14
mov ebp, 0xb
xor ebx, ebx
jmp 0x4dcf51
mov edx, dword [esp + 0x48]
jmp 0x4dcc2d
push 0x6128ec
push 0x132ce
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004c6060
add esp, 0x14
mov ebp, 0xb
xor ebx, ebx
jmp 0x4dcf51
mov dword [esp + 0x48], edx
lea eax, [esi - 1]
mov ecx, eax
mov dword [esp + 0x34], eax
test ecx, ecx
jle 0x4dcd74
nop
mov esi, dword [edx + ecx*4]
lea eax, [esp + 0xe8]
mov ebp, dword [eax + ecx*4]
lea eax, [eax + ecx*4]
mov edi, dword [esp + 0x98]
dec esi
mov dword [esp + 0x84], eax
lea eax, [esp + ecx*4 + 0xe4]
mov dword [esp + 0x80], eax
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, esi
sub eax, dword [esp + 0x88]
inc eax
cmp word [edi + eax*2], 0
lea ecx, [edi + eax*2]
mov dword [esp + 0x24], ecx
jne 0x4dcc9c
push eax
lea eax, [esp + 0x90]
push eax
call fcn.004e4670
add esp, 8
mov ebx, dword [esp + 0x34]
movzx eax, word [edi + esi*2]
test ax, ax
jne 0x4dccbd
lea eax, [esp + 0x8c]
push esi
push eax
call fcn.004e4670
add esp, 8
movzx eax, ax
movzx edi, ax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x4c], edi
movzx edx, word [eax]
test ebp, ebp
je 0x4dccfe
cmp dword [esp + 0x15c], 0
jne 0x4dcd30
mov ecx, dword [esp + 0x2c]
add edx, ebp
dec ecx
mov eax, 2
cmp ebx, ecx
mov ecx, 0
cmove eax, ecx
mov ecx, dword [esp + 0x18]
sub ecx, eax
lea eax, [edx + 2]
sub ecx, edi
cmp eax, ecx
jg 0x4dcd30
mov ecx, dword [esp + 0x18]
lea ebp, [edx + 2]
mov edx, dword [esp + 0x48]
mov eax, 0xfffffffe
sub dword [esp + 0x24], 2
sub eax, edi
mov edi, dword [esp + 0x98]
add ecx, eax
mov dword [esp + 0x18], ecx
mov dword [edx + ebx*4], esi
sub esi, 1
jns 0x4dcca0
jmp 0x4dcd38
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x84]
mov ebx, dword [esp + 0x8c]
mov dword [eax], ebp
mov eax, dword [esp + 0x80]
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
cmp ecx, 1
jbe 0x4dcd60
mov eax, dword [edx + ecx*4 - 4]
jmp 0x4dcd62
xor eax, eax
cmp dword [edx + ecx*4], eax
jle 0x4dcde2
dec ecx
mov dword [esp + 0x34], ecx
test ecx, ecx
jg 0x4dcc40
mov eax, dword [esp + 0x5c]
xor esi, esi
mov eax, dword [eax + 0x38]
movzx eax, byte [eax]
mov dword [esp + 0x34], eax
lea eax, [esi + 1]
cmp dword [esp + 0x2c], esi
jle 0x4dcfba
mov ebp, dword [esp + 0x34]
nop word [eax + eax]
mov edi, dword [esp + 0x1c]
cmp esi, edi
jge 0x4dce7f
mov edi, dword [esp + esi*4 + 0x5c]
mov dword [esp + esi*4 + 0x68], edi
mov dword [esp + esi*4 + 0x5c], 0
mov dword [esp + 0x30], edi
mov ecx, dword [edi + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x4dce10
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x4dce10
cmp dword [edx + 0x68], 0
je 0x4dce0c
push ecx
call fcn.0058ae70
jmp 0x4dce3a
push 0x6128ec
push 0x132fa
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004c6060
add esp, 0x14
mov ebp, 0xb
xor ebx, ebx
jmp 0x4dcf51
xor edx, edx
jmp 0x4dce3f
mov eax, dword [edx + 0x2c]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4dce1f
mov edx, eax
jmp 0x4dce43
mov eax, dword [edx + 0x9c]
push ecx
cmp eax, dword [edx + 0xa8]
jbe 0x4dce35
call fcn.0051f530
jmp 0x4dce3a
call fcn.005209d0
add esp, 4
mov edx, eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x150]
xor ecx, ecx
sub eax, dword [esp + 0x44]
inc dword [esp + 0x20]
cmp esi, eax
mov eax, dword [edi + 0x48]
sete cl
mov dword [esp + 0x28], edx
inc ecx
cmp dword [eax + 0x20], ecx
je 0x4dce6e
test edx, edx
je 0x4dcf2a
test edx, edx
je 0x4dcf15
mov ebp, dword [esp + 0x14]
jmp 0x4dcf4d
cmp dword [esp + 0x15c], 0
mov ecx, dword [esp + 0x50]
push 0
cmovne ecx, eax
lea eax, [esp + 0x5c]
push ecx
push eax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x4c]
call fcn.004d8d80
mov edx, eax
add esp, 0x14
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], edx
test edx, edx
jne 0x4dd6a9
mov edi, dword [esp + 0x30]
push ebp
push edi
call fcn.005a5de0
mov ecx, dword [esp + 0x44]
add esp, 8
inc dword [esp + 0x20]
mov dword [esp + esi*4 + 0x68], edi
mov dword [esp + esi*4 + 0x108], ebx
cmp byte [ecx + 0x11], 0
je 0x4dcf0d
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x150]
push dword [eax + 4]
push 5
push dword [edi + 4]
push ecx
call fcn.00525060
mov eax, dword [esp + 0x3c]
add esp, 0x14
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4dce76
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x50], ecx
inc esi
cmp esi, dword [esp + 0x2c]
jge 0x4dcfba
mov eax, 1
jmp 0x4dcda0
push 0x6128ec
push 0x1331b
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004c6060
add esp, 0x14
mov ebp, 0xb
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x94]
test esi, esi
je 0x4dd6c0
cmp dword [0x635d20], 0
je 0x4dd6b6
mov eax, dword [0x63cf30]
test eax, eax
je 0x4dcf84
push eax
call dword [0x635d70]
add esp, 4
push esi
call dword [0x635d4c]
sub dword [0x63ced0], eax
dec dword [0x63cef4]
push esi
call dword [0x635d44]
mov eax, dword [0x63cf30]
add esp, 8
test eax, eax
je 0x4dd6c0
push eax
call dword [0x635d78]
jmp 0x4dd6bd
mov edx, dword [esp + 0x20]
xor ecx, ecx
test edx, edx
jle 0x4dcfe3
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [esp + ecx*4 + 0x68]
mov eax, dword [eax + 4]
mov dword [esp + ecx*4 + 0x134], eax
inc ecx
cmp ecx, edx
jl 0x4dcfd0
lea ebx, [edx - 1]
xor ebp, ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebp
test ebx, ebx
jle 0x4dd0e1
mov eax, ebx
nop word [eax + eax]
lea edi, [ebp + 1]
mov ebx, ebp
mov dword [esp + 0x88], edi
mov esi, edi
cmp edi, edx
jge 0x4dd0d3
mov ebp, dword [esp + 0x20]
nop word [eax + eax]
mov eax, dword [esp + esi*4 + 0x68]
mov ecx, esi
mov edx, dword [esp + ebx*4 + 0x68]
mov eax, dword [eax + 4]
cmp eax, dword [edx + 4]
cmovae ecx, ebx
inc esi
mov ebx, ecx
cmp esi, ebp
jl 0x4dd020
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x30], ebx
cmp ebx, ebp
je 0x4dd0cb
mov edi, dword [esp + 0x3c]
xor edx, edx
mov eax, dword [0x635f24]
mov ecx, dword [esp + ebx*4 + 0x68]
mov esi, dword [esp + ebp*4 + 0x68]
div dword [edi + 0x24]
mov ebx, dword [ecx + 4]
mov edx, dword [esi + 0x48]
inc eax
mov ecx, dword [ecx + 0x48]
mov ebp, dword [esi + 4]
push eax
movzx esi, word [edx + 0x1c]
movzx edi, word [ecx + 0x1c]
push edx
mov word [edx + 0x1c], di
call fcn.0055c3f0
mov eax, dword [esp + 0x38]
push ebp
mov eax, dword [esp + eax*4 + 0x74]
mov eax, dword [eax + 0x48]
push eax
mov word [eax + 0x1c], si
call fcn.0055c3f0
mov esi, dword [esp + 0x34]
push ebx
mov eax, dword [esp + esi*4 + 0x7c]
mov eax, dword [eax + 0x48]
push eax
mov word [eax + 0x1c], di
call fcn.0055c3f0
mov eax, dword [esp + esi*4 + 0x80]
add esp, 0x18
mov edi, dword [esp + 0x88]
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x30]
mov eax, dword [esp + eax*4 + 0x68]
mov dword [eax + 4], ebp
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ebp, edi
mov dword [esp + 0x24], ebp
cmp ebp, eax
jl 0x4dd000
test byte [esp + 0x34], 8
mov eax, dword [esp + edx*4 + 0x64]
mov ecx, dword [esp + 0x40]
mov eax, dword [eax + 4]
bswap eax
mov dword [ecx], eax
jne 0x4dd122
mov ecx, dword [esp + 0x1c]
cmp ecx, edx
je 0x4dd122
lea eax, [esp + 0x68]
lea esi, [esp + 0x5c]
cmovge eax, esi
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [esp + 0x20]
mov eax, dword [esp + eax*4 + 0x64]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x3c]
cmp byte [eax + 0x11], 0
je 0x4dd328
mov esi, dword [esp + 0x68]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x40], 0
movzx eax, byte [esi + 0xc]
movzx ebx, word [esi + 0x18]
add ebx, eax
mov eax, dword [esp + 0x8c]
test eax, eax
jle 0x4dd328
mov edx, esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edx
nop dword [eax]
nop word [eax + eax]
mov ecx, dword [esp + 0x94]
mov ecx, dword [ecx + ebp*4]
mov dword [esp + 0x24], ecx
cmp ebp, ebx
jne 0x4dd1be
xor edx, edx
cmp byte [esp + 0x13], dl
sete dl
nop dword [eax + eax]
inc edi
cmp edi, dword [esp + 0x20]
jge 0x4dd19d
mov esi, dword [esp + edi*4 + 0x68]
jmp 0x4dd1a1
mov esi, dword [esp + edi*4 + 0x5c]
movzx eax, word [esi + 0x18]
movzx ecx, byte [esi + 0xc]
add eax, edx
add ecx, eax
add ebx, ecx
cmp ebp, ebx
je 0x4dd190
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
cmp ebp, dword [esp + ecx + 0xd4]
mov ecx, dword [esp + 0x24]
jne 0x4dd1f2
mov edx, dword [esp + 0x40]
inc edx
mov dword [esp + 0x40], edx
shl edx, 2
cmp byte [esp + 0x13], 0
mov dword [esp + 0x30], edx
mov edx, dword [esp + edx + 0x68]
mov dword [esp + 0x2c], edx
je 0x4dd31f
cmp edi, dword [esp + 0x20]
jge 0x4dd212
mov eax, dword [edx + 4]
cmp eax, dword [esp + edi*4 + 0x134]
jne 0x4dd212
cmp ecx, dword [esi + 0x38]
jb 0x4dd212
cmp ecx, dword [esi + 0x3c]
jb 0x4dd318
cmp word [esp + 0x54], 0
jne 0x4dd241
lea eax, [esp + 0x28]
push eax
push dword [edx + 4]
mov eax, dword [ecx]
push 5
bswap eax
push eax
push dword [esp + 0x4c]
call fcn.00525060
mov eax, dword [esp + 0x3c]
add esp, 0x14
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x98]
movzx eax, word [eax + ebp*2]
test ax, ax
jne 0x4dd269
lea eax, [esp + 0x8c]
push ebp
push eax
call fcn.004e4670
mov edx, dword [esp + 0x34]
add esp, 8
movzx eax, ax
cmp ax, word [edx + 0x10]
jbe 0x4dd306
cmp dword [esp + 0x14], 0
jne 0x4dce76
lea eax, [esp + 0x11c]
push eax
push dword [esp + 0x28]
mov eax, dword [edx + 0x50]
push edx
call eax
movzx eax, word [esp + 0x138]
add esp, 0xc
cmp eax, dword [esp + 0x128]
jae 0x4dd314
mov edx, dword [esi + 0x3c]
mov ecx, dword [esp + 0x24]
cmp ecx, edx
jae 0x4dd2d0
add eax, ecx
cmp eax, edx
jbe 0x4dd2d0
push 0x117ec
call fcn.0053a5e0
mov edx, dword [esp + 0x30]
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
jmp 0x4dd30a
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x28]
push eax
movzx eax, word [esp + 0x132]
push dword [edx + 4]
mov eax, dword [eax + ecx - 4]
push 3
bswap eax
push eax
push dword [edx + 0x34]
call fcn.00525060
mov eax, dword [esp + 0x3c]
add esp, 0x14
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
jmp 0x4dd30a
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4dce76
jmp 0x4dd318
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x8c]
inc ebp
cmp ebp, eax
jl 0x4dd170
xor ebp, ebp
cmp dword [esp + 0x18], ebp
jle 0x4dd4a3
nop dword [eax]
nop dword [eax + eax]
mov esi, dword [esp + ebp*4 + 0xd4]
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + ebp*4 + 0x68]
mov ebx, dword [esp + 0x154]
add ebx, dword [esp + 0x7c]
mov edi, dword [eax + esi*4]
mov eax, dword [esp + 0x98]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x54]
movzx edx, cx
mov ecx, dword [esp + 0x40]
movzx eax, word [eax + esi*2]
add edx, eax
cmp byte [ecx + 8], 0
jne 0x4dd38f
mov ecx, dword [ecx + 0x38]
mov eax, dword [edi]
mov dword [ecx + 8], eax
jmp 0x4dd43d
cmp byte [esp + 0x13], 0
je 0x4dd421
lea eax, [esp + 0x11c]
dec esi
push eax
mov eax, dword [esp + 0x98]
push dword [eax + esi*4]
mov eax, dword [ecx + 0x50]
push ecx
call eax
mov edx, dword [esp + 0x12c]
mov edi, ebx
mov ecx, dword [esp + 0x128]
add esp, 0xc
add ebx, 4
test edx, edx
ja 0x4dd40f
jb 0x4dd3d4
cmp ecx, 0x7f
ja 0x4dd3e5
mov eax, 1
and cl, 0x7f
mov byte [ebx], cl
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x4dd43d
test edx, edx
ja 0x4dd40f
jb 0x4dd3f3
cmp ecx, 0x3fff
ja 0x4dd40f
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
mov byte [ebx + 1], cl
or al, 0x80
mov byte [ebx], al
mov eax, 2
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x4dd43d
push edx
push ecx
push ebx
call fcn.00525960
add esp, 0xc
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x4dd43d
sub edi, 4
cmp eax, 4
jne 0x4dd43d
mov eax, dword [esp + 0x14c]
push edi
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
add dword [esp + 0x7c], edx
xor eax, eax
cmp dword [esp + eax*4 + 0xb4], esi
jg 0x4dd452
inc eax
cmp eax, 6
jl 0x4dd443
mov ecx, dword [esp + eax*4 + 0x9c]
cmp edi, ecx
jae 0x4dd468
lea eax, [edx + edi]
cmp eax, ecx
ja 0x4dd505
mov eax, dword [esp + 0x40]
push dword [eax + 4]
mov eax, dword [esp + 0x48]
push ebx
push edx
push edi
add eax, ebp
push eax
push dword [esp + 0x160]
call fcn.005105b0
add esp, 0x18
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4dce76
inc ebp
cmp ebp, dword [esp + 0x18]
jl 0x4dd340
mov ebx, dword [esp + 0x20]
mov ebp, 1
sub ebp, ebx
mov dword [esp + 0x40], ebp
cmp ebp, ebx
jge 0x4dd5a1
mov ebx, dword [esp + 0xd4]
mov eax, ebp
lea edi, [esp + 0xcc]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
add edi, ecx
cmp byte [edi], 0
jne 0x4dd58e
lea esi, [ecx*4]
test ebp, ebp
jns 0x4dd4fb
mov eax, dword [esp + esi + 0x104]
cmp eax, dword [esp + esi + 0xd0]
jl 0x4dd58e
test ecx, ecx
jne 0x4dd514
xor eax, eax
mov edx, ebx
jmp 0x4dd54c
push 0x6128ec
push 0x133e3
jmp 0x4dcf34
cmp ecx, dword [esp + 0x1c]
jge 0x4dd52c
xor eax, eax
cmp byte [esp + 0x13], al
sete al
add eax, dword [esp + esi + 0x104]
jmp 0x4dd533
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + esi + 0xd4]
xor ecx, ecx
cmp byte [esp + 0x13], cl
sete cl
add ecx, dword [esp + esi + 0xd0]
sub edx, ecx
lea ebp, [esp + 0x8c]
push ebp
push edx
push ecx
push eax
push dword [esp + esi + 0x78]
call fcn.004e85d0
mov ebp, eax
add esp, 0x14
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], ebp
test ebp, ebp
jne 0x4dcf4d
mov eax, dword [esp + esi + 0x68]
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + esi + 0xe8]
mov ebp, dword [esp + 0x40]
mov byte [edi], 1
mov dword [eax + 0x14], ecx
inc ebp
mov dword [esp + 0x40], ebp
cmp ebp, dword [esp + 0x20]
jl 0x4dd4c1
mov ebx, dword [esp + 0x20]
cmp dword [esp + 0x158], 0
je 0x4dd60b
mov ebp, dword [esp + 0x14c]
cmp word [ebp + 0x18], 0
jne 0x4dd60b
mov ecx, dword [esp + 0x68]
movzx eax, byte [ebp + 9]
cmp eax, dword [ecx + 0x14]
jg 0x4dd60b
push 0xffffffffffffffff
push ecx
call fcn.004e7740
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
push ebp
push dword [esp + 0x78]
call fcn.004e66a0
mov edx, dword [esp + 0x3c]
add esp, 0x14
mov dword [esp + 0x14], edx
test edx, edx
jne 0x4dd65a
mov eax, dword [esp + 0x68]
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.004f14d0
mov edx, eax
add esp, 0xc
mov dword [esp + 0x14], edx
jmp 0x4dd65a
mov ecx, dword [esp + 0x3c]
cmp byte [ecx + 0x11], 0
je 0x4dd656
cmp word [esp + 0x54], 0
jne 0x4dd656
xor esi, esi
test ebx, ebx
jle 0x4dd656
mov eax, dword [esp + esi*4 + 0x68]
lea edx, [esp + 0x28]
push edx
push dword [eax + 4]
mov eax, dword [eax + 0x38]
push 5
mov eax, dword [eax + 8]
bswap eax
push eax
push ecx
call fcn.00525060
mov ecx, dword [esp + 0x50]
inc esi
add esp, 0x14
cmp esi, ebx
jl 0x4dd623
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], edx
jmp 0x4dd65a
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov esi, ebx
cmp ebx, edi
jge 0x4dd686
mov eax, dword [esp + esi*4 + 0x5c]
test edx, edx
jne 0x4dd67d
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.004f14d0
add esp, 0xc
mov edx, eax
inc esi
cmp esi, edi
jl 0x4dd664
mov dword [esp + 0x14], edx
mov ebp, dword [esp + 0x14]
jmp 0x4dcf55
lea eax, [edi + 4]
push eax
lea eax, [esp + 0x60]
push 0
push eax
call fcn.00423ff0
add esp, 0xc
xor ebx, ebx
jmp 0x4dcf51
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
jmp 0x4dcf55
push esi
call dword [0x635d44]
add esp, 4
xor esi, esi
test edi, edi
jle 0x4dd6de
mov eax, dword [esp + esi*4 + 0x5c]
test eax, eax
je 0x4dd6d9
push dword [eax + 0x48]
call fcn.0055b380
add esp, 4
inc esi
cmp esi, edi
jl 0x4dd6c6
xor esi, esi
test ebx, ebx
jle 0x4dd6fc
mov eax, dword [esp + esi*4 + 0x68]
test eax, eax
je 0x4dd6f7
push dword [eax + 0x48]
call fcn.0055b380
add esp, 4
inc esi
cmp esi, ebx
jl 0x4dd6e4
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x138
ret