Function at 0x50b480
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xfc
mov eax, dword [0x59a024]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
xor ebx, ebx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x108]
mov dword [esp + 0xf8], eax
mov byte [esp + 0xfc], al
mov eax, dword [ebp + 0x34]
push esi
mov esi, dword [esp + 0x114]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x80], ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x20], eax
cmp ecx, ebx
jne 0x50b500
pop esi
pop ebp
lea eax, [ebx + 7]
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.00409b58
add esp, 0xfc
ret
movzx ecx, word [ebp + 0x12]
movzx eax, byte [ebp + 1]
push edi
lea edi, [eax + ecx]
cmp edi, 2
jge 0x50b515
xor edx, edx
jmp 0x50b52f
cmp edx, ebx
jne 0x50b51d
xor edx, edx
jmp 0x50b528
cmp edx, edi
jne 0x50b527
lea edx, [edi + esi - 2]
jmp 0x50b528
dec edx
mov edi, 2
sub edi, esi
lea esi, [edi + 1]
mov dword [esp + 0x2c], esi
mov esi, edx
sub esi, eax
lea eax, [esi + edi]
mov dword [esp + 0x54], edx
cmp eax, ecx
jne 0x50b552
movzx ecx, byte [ebp + 6]
mov eax, dword [ebp + 0x38]
lea eax, [ecx + eax + 8]
jmp 0x50b569
mov ecx, dword [ebp + 0x40]
mov ax, word [ecx + eax*2]
mov ch, al
mov cl, ah
movzx eax, cx
movzx ecx, word [ebp + 0x14]
and eax, ecx
add eax, dword [ebp + 0x38]
mov dword [esp + 0x64], eax
mov eax, dword [eax]
bswap eax
add edx, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], edx
jmp 0x50b580
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
cmp ecx, dword [eax + 0x2c]
jbe 0x50b5ad
push 0x58e0b0
push 0xdf1d
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.004e01f0
add esp, 0x10
mov esi, 0xb
jmp 0x50b622
mov eax, dword [eax]
lea edx, [esp + 0x1c]
push edx
push eax
xor eax, eax
call fcn.004f8020
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x50b622
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 8]
cmp byte [eax], 0
mov dword [esp + edi*4 + 0x58], eax
jne 0x50b620
mov edx, dword [esp + 0x28]
cmp edx, dword [eax + 0x54]
je 0x50b5ff
mov esi, dword [ecx + 4]
cmp edx, 1
mov dword [eax + 0x54], edx
setne dl
dec dl
mov dword [eax + 0x48], ecx
mov ecx, dword [esp + 0x24]
and dl, 0x64
mov dword [eax + 0x38], esi
mov dword [eax + 0x34], ecx
mov byte [eax + 6], dl
mov ebx, eax
mov esi, eax
call fcn.004edb30
mov esi, eax
test esi, esi
je 0x50b620
test ebx, ebx
je 0x50b622
mov eax, dword [ebx + 0x48]
push eax
call fcn.00505710
add esp, 4
jmp 0x50b622
xor esi, esi
mov dword [esp + 0x14], esi
test esi, esi
jne 0x50b746
mov eax, dword [esp + edi*4 + 0x58]
movzx edx, byte [eax + 1]
movzx ecx, word [eax + 0x12]
add edx, dword [esp + 0x4c]
dec dword [esp + 0x18]
mov eax, edi
lea esi, [edx + ecx + 1]
dec edi
mov dword [esp + 0x4c], esi
test eax, eax
je 0x50b762
movzx ecx, word [ebp + 0x16]
cmp dword [esp + 0x18], ecx
jne 0x50b693
cmp byte [ebp + 1], 0
je 0x50b693
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x4c]
push eax
bswap ecx
push ebp
mov dword [esp + edi*4 + 0xfc], eax
mov dword [esp + 0x30], ecx
call edx
movzx eax, ax
add esp, 8
mov dword [esp + edi*4 + 0x6c], eax
mov byte [ebp + 1], 0
xor ebx, ebx
jmp 0x50b580
movzx ecx, byte [ebp + 1]
mov edx, dword [esp + 0x54]
mov eax, dword [ebp + 0x40]
sub edx, ecx
add edx, edi
mov cx, word [eax + edx*2]
mov dh, cl
mov dl, ch
movzx ecx, word [ebp + 0x14]
movzx eax, dx
mov edx, dword [ebp + 0x38]
and eax, ecx
mov ecx, dword [eax + edx]
add eax, edx
push eax
mov dword [esp + edi*4 + 0xf8], eax
mov eax, dword [ebp + 0x4c]
bswap ecx
push ebp
mov dword [esp + 0x30], ecx
call eax
mov ecx, dword [esp + 0x2c]
movzx esi, ax
add esp, 8
test byte [ecx + 0x16], 4
mov dword [esp + edi*4 + 0x6c], esi
je 0x50b722
mov ebx, dword [esp + edi*4 + 0xf4]
mov eax, ebx
sub eax, dword [ebp + 0x38]
lea edx, [esi + eax]
cmp edx, dword [ecx + 0x24]
jg 0x50c70b
mov edx, dword [esp + 0x84]
push esi
add edx, eax
push ebx
push edx
call fcn.0040dc50
mov eax, dword [esp + 0x90]
sub eax, dword [ebp + 0x38]
add esp, 0xc
add eax, ebx
mov dword [esp + edi*4 + 0xf4], eax
movzx edx, byte [ebp + 1]
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x14]
push ecx
sub eax, edx
push esi
add eax, edi
push eax
mov esi, ebp
call fcn.004ee0e0
add esp, 0xc
xor ebx, ebx
jmp 0x50b580
lea ecx, [edi*4 + 4]
push ecx
lea edx, [esp + 0x5c]
push 0
push edx
call fcn.00412eb0
add esp, 0xc
jmp 0x50c740
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x20]
add esi, 3
and esi, 0xfffffffc
lea eax, [esi + esi*2]
lea eax, [edx + eax*2]
call fcn.004cb600
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x50b78f
mov dword [esp + 0x14], 7
jmp 0x50c740
lea eax, [eax + esi*4]
mov dword [esp + 0x40], eax
lea eax, [eax + esi*2]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x58]
movzx cx, byte [eax + 5]
add cx, cx
add cx, cx
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x38], eax
movzx eax, byte [eax + 3]
movzx edx, cx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x10], 0
jle 0x50b9ba
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + ecx*4 + 0x58]
movzx edx, word [edi + 0x12]
movzx eax, word [edi + 0x14]
mov ebx, dword [edi + 0x38]
movzx esi, word [edi + 0xe]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 0x38]
mov dword [esp + 0x1c], eax
mov al, byte [ebx]
add esi, ebx
cmp al, byte [edx]
jne 0x50bb40
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x34]
lea edx, [ecx + ecx]
push edx
lea ecx, [eax + ebp*2]
push 0
push ecx
call fcn.00412eb0
mov al, byte [edi + 1]
add esp, 0xc
test al, al
jbe 0x50b8b0
mov ecx, dword [esp + 0x40]
movzx edx, al
mov eax, dword [esp + 0x18]
add edx, edx
push edx
add eax, ebp
lea edx, [ecx + eax*2]
push 0
push edx
call fcn.00412eb0
movzx eax, word [edi + 0x16]
mov ecx, dword [esp + 0x48]
add esp, 0xc
test eax, eax
jle 0x50b886
mov dword [esp + 0x18], eax
jmp 0x50b860
mov ax, word [esi]
mov dh, al
add esi, 2
inc ebp
mov dl, ah
movzx eax, word [esp + 0x1c]
movzx edx, dx
and edx, eax
add edx, ebx
sub dword [esp + 0x18], 1
mov dword [ecx + ebp*4 - 4], edx
jne 0x50b860
mov dword [esp + 0x34], ebp
xor eax, eax
cmp byte [edi + 1], al
jbe 0x50b8b0
lea edx, [edi + 0x20]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x18]
mov edx, dword [edx]
add dword [esp + 0x18], 4
mov dword [ecx + ebp*4], edx
movzx edx, byte [edi + 1]
inc eax
inc ebp
cmp eax, edx
jl 0x50b894
mov dword [esp + 0x34], ebp
movzx ecx, word [edi + 0xe]
movzx eax, word [edi + 0x12]
add ecx, ebx
lea ebp, [ecx + eax*2]
mov eax, dword [esp + 0x34]
cmp esi, ebp
jae 0x50b8f4
movzx edx, word [esp + 0x1c]
mov dword [esp + 0x18], edx
mov edi, edi
mov cx, word [esi]
mov dh, cl
add esi, 2
inc eax
mov dl, ch
movzx ecx, dx
and ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
add ecx, ebx
mov dword [edx + eax*4 - 4], ecx
cmp esi, ebp
jb 0x50b8d0
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + ecx*4 + 0xc8], eax
mov eax, dword [esp + 0x2c]
dec eax
cmp ecx, eax
jge 0x50b9a7
cmp dword [esp + 0x48], 0
jne 0x50b9a7
movzx eax, word [esp + ecx*4 + 0x6c]
mov ebp, dword [esp + 0x40]
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + ecx*4 + 0xf4]
mov esi, dword [esp + 0x30]
mov word [ebp + ebx*2], ax
movzx eax, ax
push eax
add esi, edx
push ecx
add edx, eax
push esi
mov dword [esp + 0x50], edx
call fcn.0040dc50
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
movzx edx, ax
add edx, esi
mov dword [ecx + ebx*4], edx
sub word [ebp + ebx*2], ax
add esp, 0xc
cmp byte [edi + 5], 0
jne 0x50b976
mov eax, dword [edi + 0x38]
mov ecx, dword [ecx + ebx*4]
mov edx, dword [eax + 8]
mov dword [ecx], edx
jmp 0x50b99e
cmp word [ebp + ebx*2], 4
jae 0x50b99e
mov edi, edi
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
mov byte [ecx + eax], 0
inc word [ebp + ebx*2]
inc eax
cmp word [ebp + ebx*2], 4
mov dword [esp + 0x44], eax
jb 0x50b980
mov ecx, dword [esp + 0x10]
inc ebx
mov dword [esp + 0x34], ebx
inc ecx
cmp ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
jl 0x50b7d2
mov ebp, dword [esp + 0x50]
cmp dword [esp + 0x2c], 0
mov edx, dword [esp + 0x24]
movzx eax, word [esp + 0x4c]
mov ecx, dword [edx + 0x24]
lea edx, [eax + ecx - 0xc]
mov dword [esp + 0x44], edx
mov dword [esp + 0x10], 0
jle 0x50ba4f
lea ecx, [ecx]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + eax*4 + 0x58]
movzx ecx, word [esi + 0x10]
mov edi, dword [esp + 0x44]
sub edi, ecx
mov dword [esp + eax*4 + 0x6c], edi
js 0x50bb66
xor ebp, ebp
cmp byte [esi + 1], 0
jbe 0x50ba2e
lea ebx, [esi + 0x20]
mov edx, dword [ebx]
mov eax, dword [esi + 0x4c]
push edx
push esi
call eax
movzx edx, byte [esi + 1]
movzx ecx, ax
inc ebp
add esp, 8
add ebx, 4
cmp ebp, edx
lea edi, [edi + ecx + 2]
jl 0x50ba07
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x6c], edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + eax*4 + 0xc8]
mov dword [esp + eax*4 + 0x88], ecx
inc eax
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
jl 0x50b9e0
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x10], 0
test ebx, ebx
jle 0x50bc7e
xor ebx, ebx
lea eax, [esp + 0x88]
sub eax, 4
mov dword [esp + 0x1c], 1
mov dword [esp + 0xf4], ebx
mov dword [esp + 0x18], eax
jmp 0x50ba90
mov edx, dword [esp + 0x44]
cmp dword [esp + ebx + 0x6c], edx
jle 0x50bb94
mov edi, edi
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x30]
jl 0x50bacb
inc eax
cmp eax, 5
mov dword [esp + 0x30], eax
jg 0x50bd82
mov eax, dword [esp + 0x34]
mov dword [esp + ebx + 0x70], 0
mov dword [esp + ebx + 0x8c], eax
mov ecx, dword [esp + 0xf4]
mov ebx, dword [esp + ecx + 0x88]
mov edx, dword [esp + 0x40]
movzx eax, word [edx + ebx*2 - 2]
lea ebp, [ebx - 1]
test ax, ax
jne 0x50bafc
mov edi, ebp
lea esi, [esp + 0x34]
call fcn.004c41b0
mov ecx, dword [esp + 0xf4]
movzx eax, ax
movzx eax, ax
add eax, 2
sub dword [esp + ecx + 0x6c], eax
cmp dword [esp + 0x48], 0
jne 0x50bb74
cmp ebx, dword [esp + 0x34]
jge 0x50bb72
mov eax, dword [esp + 0x40]
movzx eax, word [eax + ebx*2]
test ax, ax
jne 0x50bb35
mov edi, ebx
lea esi, [esp + 0x34]
call fcn.004c41b0
mov ecx, dword [esp + 0xf4]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x50bb74
push 0x58e0b0
push 0xf354
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.004e01f0
add esp, 0x10
mov dword [esp + 0x14], 0xb
jmp 0x50c740
push 0x58e0b0
push 0xf3b7
jmp 0x50bb4a
xor eax, eax
mov edx, dword [esp + 0x44]
add dword [esp + ecx + 0x70], eax
cmp dword [esp + ecx + 0x6c], edx
mov ebx, dword [esp + 0xf4]
mov dword [esp + ecx + 0x88], ebp
jg 0x50baa0
mov edx, dword [esp + 0x34]
cmp dword [esp + ebx + 0x88], edx
jge 0x50bc26
mov ebp, dword [esp + 0x40]
lea esp, [esp]
mov edi, dword [esp + ebx + 0x88]
movzx eax, word [ebp + edi*2]
test ax, ax
jne 0x50bbce
lea esi, [esp + 0x34]
call fcn.004c41b0
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + ebx + 0x6c]
movzx eax, ax
movzx eax, ax
add eax, 2
add ecx, eax
cmp ecx, dword [esp + 0x44]
jg 0x50bc26
inc edi
cmp dword [esp + 0x48], 0
mov dword [esp + ebx + 0x6c], ecx
mov dword [esp + ebx + 0x88], edi
jne 0x50bc1e
cmp edi, edx
jge 0x50bc1c
movzx eax, word [ebp + edi*2]
test ax, ax
jne 0x50bc11
lea esi, [esp + 0x34]
call fcn.004c41b0
mov edx, dword [esp + 0x34]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x50bc1e
xor eax, eax
sub dword [esp + ebx + 0x70], eax
cmp edi, edx
jl 0x50bbb0
mov ecx, dword [esp + ebx + 0x88]
cmp ecx, edx
jl 0x50bc3b
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x30], edx
jmp 0x50bc55
cmp dword [esp + 0x10], 0
jle 0x50bc4b
mov eax, dword [esp + 0x18]
mov eax, dword [eax + ebx]
jmp 0x50bc4d
xor eax, eax
cmp ecx, eax
jle 0x50bd91
mov eax, dword [esp + 0x10]
inc dword [esp + 0x1c]
inc eax
add ebx, 4
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
mov dword [esp + 0xf4], ebx
jl 0x50ba90
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0x30]
lea eax, [ebx - 1]
mov dword [esp + 0x10], eax
test eax, eax
jle 0x50bdbc
lea ecx, [ecx]
mov ecx, dword [esp + eax*4 + 0x68]
mov ebx, dword [esp + eax*4 + 0x6c]
lea edx, [esp + 0x88]
mov ebp, dword [edx + eax*4 - 4]
sub edx, 4
dec ebp
mov edi, ebp
sub edi, dword [esp + 0x48]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x40]
inc edi
cmp word [ecx + edi*2], 0
lea ecx, [ecx + edi*2]
mov dword [esp + 0x18], edx
mov dword [esp + 0xf4], ecx
jne 0x50bce3
lea esi, [esp + 0x34]
call fcn.004c41b0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0xf4]
mov eax, dword [esp + 0x10]
mov dword [esp + 0xf4], ecx
lea ebx, [ebx]
mov esi, dword [esp + 0x40]
cmp word [esi + ebp*2], 0
jne 0x50bd15
mov edi, ebp
lea esi, [esp + 0x34]
call fcn.004c41b0
mov ecx, dword [esp + 0xf4]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test ebx, ebx
je 0x50bd3f
cmp dword [esp + 0x118], 0
jne 0x50bd6b
mov esi, dword [esp + 0x40]
movzx esi, word [esi + ebp*2]
mov edi, dword [esp + 0x1c]
sub edi, esi
movzx esi, word [ecx]
sub edi, 2
lea esi, [esi + ebx + 2]
cmp esi, edi
jg 0x50bd6b
movzx esi, word [ecx]
lea ebx, [ebx + esi + 2]
mov esi, dword [esp + 0x40]
movzx esi, word [esi + ebp*2]
mov edi, 0xfffffffe
sub edi, esi
add dword [esp + 0x1c], edi
mov dword [edx + eax*4], ebp
dec ebp
sub ecx, 2
mov dword [esp + 0xf4], ecx
test ebp, ebp
jge 0x50bcf0
cmp eax, 1
mov ecx, dword [esp + 0x1c]
mov dword [esp + eax*4 + 0x6c], ebx
mov dword [esp + eax*4 + 0x68], ecx
jle 0x50bda0
mov ecx, dword [edx + eax*4 - 4]
jmp 0x50bda2
push 0x58e0b0
push 0xf3c3
jmp 0x50bb4a
push 0x58e0b0
push 0xf3e4
jmp 0x50bb4a
xor ecx, ecx
cmp dword [edx + eax*4], ecx
jle 0x50be13
dec eax
mov dword [esp + 0x10], eax
test eax, eax
jg 0x50bc90
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x58]
mov eax, dword [edx + 0x38]
movzx ecx, byte [eax]
xor edi, edi
mov dword [esp + 0x1c], ecx
test ebx, ebx
jle 0x50bf3a
cmp edi, dword [esp + 0x2c]
jge 0x50bea6
mov eax, dword [esp + edi*4 + 0x58]
mov esi, dword [eax + 0x48]
mov dword [esp + edi*4 + 0x9c], eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x28]
mov dword [esp + edi*4 + 0x58], 0
test ecx, ecx
je 0x50be22
inc dword [esp + 0x20]
mov eax, ecx
mov dword [esp + 0x14], eax
test eax, eax
jmp 0x50bf2b
push 0x58e0b0
push 0xf40e
jmp 0x50bb4a
test byte [esi + 0x18], 4
je 0x50be6a
mov edx, dword [eax + 0x18]
cmp edx, dword [esi + 0x14]
jb 0x50be6a
cmp dword [eax + 0x60], 0
je 0x50be59
mov ecx, esi
call fcn.004c2500
test eax, eax
je 0x50be59
push esi
call fcn.004d5f60
inc dword [esp + 0x24]
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jmp 0x50bf2b
inc dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x14], eax
test eax, eax
jmp 0x50bf2b
mov ecx, dword [eax + 0x94]
cmp ecx, dword [eax + 0x98]
jbe 0x50be90
push esi
call fcn.00500310
inc dword [esp + 0x24]
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jmp 0x50bf2b
mov eax, esi
call fcn.00500250
inc dword [esp + 0x20]
mov dword [esp + 0x14], eax
test eax, eax
jmp 0x50bf2b
cmp dword [esp + 0x118], 0
mov eax, 1
jne 0x50beb9
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push 0
push eax
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x24]
push eax
push ecx
call fcn.00506e80
add esp, 0x14
mov dword [esp + 0x14], eax
test eax, eax
jne 0x50c740
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
push edx
call fcn.004ede30
mov ecx, dword [esp + 0x28]
inc dword [esp + 0x24]
mov eax, dword [esp + 0x38]
add esp, 4
cmp byte [ecx + 0x11], 0
mov dword [esp + edi*4 + 0x9c], esi
mov dword [esp + edi*4 + 0xc8], eax
je 0x50bf31
mov eax, dword [ebp + 0x54]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esi + 0x54]
push 5
call fcn.00500fc0
add esp, 0xc
cmp dword [esp + 0x14], 0
jne 0x50c740
inc edi
cmp edi, ebx
jl 0x50bdd4
xor eax, eax
cmp dword [esp + 0x20], eax
jle 0x50bf97
mov esi, dword [esp + 0x20]
jmp 0x50bf50
mov ecx, dword [esp + eax*4 + 0x9c]
mov edx, dword [ecx + 0x54]
mov ecx, dword [ecx + 0x48]
mov cx, word [ecx + 0x18]
mov word [esp + eax*2 + 0xf4], cx
xor ecx, ecx
mov dword [esp + eax*4 + 0xdc], edx
mov dword [esp + eax*4 + 0xb0], edx
test eax, eax
jle 0x50bf92
lea ecx, [ecx]
cmp dword [esp + ecx*4 + 0xdc], edx
je 0x50c07f
inc ecx
cmp ecx, eax
jl 0x50bf80
inc eax
cmp eax, esi
jl 0x50bf50
xor esi, esi
cmp dword [esp + 0x20], esi
mov dword [esp + 0x10], esi
jle 0x50c1d9
mov eax, 1
xor ebp, ebp
xor ebx, ebx
cmp dword [esp + 0x20], eax
jle 0x50bfe2
xor edx, edx
jmp 0x50bfc0
lea ecx, [eax*4]
mov edi, dword [esp + ecx + 0xb0]
cmp edi, dword [esp + edx + 0xb0]
jae 0x50bfdb
mov ebp, eax
mov edx, ecx
inc eax
cmp eax, dword [esp + 0x20]
jl 0x50bfc0
mov edx, dword [esp + ebp*4 + 0xb0]
mov dword [esp + 0x28], edx
mov dword [esp + ebp*4 + 0xb0], 0xffffffff
cmp ebp, esi
je 0x50c1ca
jle 0x50c0e7
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x2c]
mov edx, dword [esp + ebp*4 + 0x9c]
mov esi, dword [edx + 0x48]
mov edx, dword [esi]
lea edi, [ecx + ebp + 1]
mov ecx, dword [esi + 0x14]
xor eax, eax
push edi
mov word [esi + 0x18], ax
mov eax, dword [esi + 0x1c]
push ecx
mov ecx, dword [eax + 0x2c]
push edx
push ecx
call dword [0x59bf9c]
movzx eax, word [esi + 0x18]
add esp, 0x10
mov dword [esi + 0x14], edi
test al, 2
je 0x50c0e7
test al, 8
je 0x50c0e7
mov ecx, dword [esi + 0x1c]
cmp dword [ecx + 8], esi
jne 0x50c070
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x50c06d
nop
test byte [eax + 0x18], 8
je 0x50c06d
mov eax, dword [eax + 0x24]
cmp eax, ebx
jne 0x50c060
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x50c08e
mov edx, dword [esi + 0x24]
mov dword [eax + 0x24], edx
jmp 0x50c094
push 0x58e0b0
push 0xf458
jmp 0x50bb4a
mov eax, dword [esi + 0x24]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x50c0a3
mov edx, dword [esi + 0x20]
mov dword [eax + 0x20], edx
jmp 0x50c0b6
mov eax, dword [esi + 0x20]
mov dword [ecx], eax
cmp eax, ebx
jne 0x50c0b6
cmp byte [ecx + 0x20], 0
je 0x50c0b6
mov byte [ecx + 0x21], 2
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov eax, dword [ecx]
mov dword [esi + 0x20], eax
cmp eax, ebx
je 0x50c0ca
mov dword [eax + 0x24], esi
jmp 0x50c0d7
cmp byte [ecx + 0x20], 0
mov dword [ecx + 4], esi
je 0x50c0d7
mov byte [ecx + 0x21], 1
mov dword [ecx], esi
cmp dword [ecx + 8], ebx
jne 0x50c0e7
test byte [esi + 0x18], 8
jne 0x50c0e7
mov dword [ecx + 8], esi
mov eax, dword [esp + 0x10]
mov edi, dword [esp + eax*4 + 0x9c]
mov esi, dword [edi + 0x48]
mov edx, dword [esp + 0x28]
mov cx, word [esp + ebp*2 + 0xf4]
mov eax, dword [esi + 0x14]
push edx
mov edx, dword [esi + 0x1c]
mov word [esi + 0x18], cx
mov ecx, dword [esi]
push eax
mov eax, dword [edx + 0x2c]
push ecx
push eax
call dword [0x59bf9c]
movzx eax, word [esi + 0x18]
mov ecx, dword [esp + 0x38]
add esp, 0x10
mov dword [esi + 0x14], ecx
test al, 2
je 0x50c1bf
test al, 8
je 0x50c1bf
mov ecx, dword [esi + 0x1c]
cmp dword [ecx + 8], esi
jne 0x50c157
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x50c154
test byte [eax + 0x18], 8
je 0x50c154
mov eax, dword [eax + 0x24]
cmp eax, ebx
jne 0x50c147
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x50c166
mov edx, dword [esi + 0x24]
mov dword [eax + 0x24], edx
jmp 0x50c16c
mov eax, dword [esi + 0x24]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x50c17b
mov edx, dword [esi + 0x20]
mov dword [eax + 0x20], edx
jmp 0x50c18e
mov eax, dword [esi + 0x20]
mov dword [ecx], eax
cmp eax, ebx
jne 0x50c18e
cmp byte [ecx + 0x20], 0
je 0x50c18e
mov byte [ecx + 0x21], 2
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov eax, dword [ecx]
mov dword [esi + 0x20], eax
cmp eax, ebx
je 0x50c1a2
mov dword [eax + 0x24], esi
jmp 0x50c1af
cmp byte [ecx + 0x20], 0
mov dword [ecx + 4], esi
je 0x50c1af
mov byte [ecx + 0x21], 1
mov dword [ecx], esi
cmp dword [ecx + 8], ebx
jne 0x50c1bf
test byte [esi + 0x18], 8
jne 0x50c1bf
mov dword [ecx + 8], esi
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x10]
mov dword [edi + 0x54], eax
inc esi
cmp esi, dword [esp + 0x20]
mov dword [esp + 0x10], esi
jl 0x50bfa7
test byte [esp + 0x1c], 8
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + ecx*4 + 0x98]
mov edx, dword [eax + 0x54]
mov esi, dword [esp + 0x64]
bswap edx
mov dword [esi], edx
jne 0x50c21b
mov edx, dword [esp + 0x2c]
cmp ecx, edx
je 0x50c21b
lea ecx, [esp + 0x9c]
jg 0x50c20b
lea ecx, [esp + 0x58]
mov ecx, dword [ecx + edx*4 - 4]
mov edx, dword [ecx + 0x38]
mov eax, dword [eax + 0x38]
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x24]
cmp byte [edx + 0x11], 0
mov eax, dword [esp + 0x9c]
je 0x50c3e3
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x1c], ecx
movzx ecx, word [eax + 0x12]
mov ebp, eax
movzx eax, byte [eax + 1]
add ecx, eax
mov dword [esp + 0x64], ecx
mov ecx, dword [edx + 0x24]
xor edx, edx
cmp dword [esp + 0x34], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], edx
jle 0x50c3e3
mov dword [esp + 0xf4], edx
lea ecx, [ecx]
mov edi, dword [esp + 0x64]
mov eax, dword [esp + 0x3c]
mov ebx, dword [eax + edx*4]
mov esi, dword [esp + 0x18]
cmp edx, edi
jne 0x50c2c3
inc esi
cmp esi, dword [esp + 0x20]
mov dword [esp + 0x18], esi
jge 0x50c297
mov eax, dword [esp + esi*4 + 0x9c]
jmp 0x50c29b
mov eax, dword [esp + esi*4 + 0x58]
movzx edx, byte [eax + 1]
movzx ecx, word [eax + 0x12]
mov eax, dword [eax + 0x38]
add ecx, edx
xor edx, edx
cmp dword [esp + 0x48], edx
mov dword [esp + 0x1c], eax
sete dl
add edx, edi
add edx, ecx
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x10]
jmp 0x50c2c7
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xf4]
cmp edx, dword [esp + ecx + 0x88]
jne 0x50c2fd
mov ecx, dword [esp + 0x30]
inc ecx
mov dword [esp + 0x30], ecx
add ecx, ecx
add ecx, ecx
cmp dword [esp + 0x48], 0
mov ebp, dword [esp + ecx + 0x9c]
mov dword [esp + 0xf4], ecx
je 0x50c3d4
cmp esi, dword [esp + 0x20]
jge 0x50c321
mov ecx, dword [ebp + 0x54]
cmp ecx, dword [esp + esi*4 + 0xdc]
jne 0x50c321
cmp ebx, eax
jb 0x50c321
mov ecx, dword [esp + 0x28]
add ecx, eax
cmp ebx, ecx
jb 0x50c3d4
cmp word [esp + 0x4c], 0
jne 0x50c348
mov ecx, dword [ebp + 0x54]
mov eax, dword [ebx]
lea edx, [esp + 0x14]
push edx
push ecx
mov ecx, dword [esp + 0x2c]
push 5
bswap eax
call fcn.00500fc0
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [esp + 0x40]
movzx eax, word [eax + edx*2]
test ax, ax
jne 0x50c364
mov edi, edx
lea esi, [esp + 0x34]
call fcn.004c41b0
mov edx, dword [esp + 0x10]
movzx eax, ax
cmp ax, word [ebp + 0xc]
jbe 0x50c3c3
cmp dword [esp + 0x14], 0
jne 0x50c740
mov edx, dword [ebp + 0x50]
lea ecx, [esp + 0xb0]
push ecx
push ebx
push ebp
call edx
movzx eax, word [esp + 0xcc]
add esp, 0xc
cmp eax, dword [esp + 0xbc]
jae 0x50c3d0
movzx ecx, word [esp + 0xc2]
mov eax, dword [ecx + ebx - 4]
mov ecx, dword [ebp + 0x54]
lea edx, [esp + 0x14]
push edx
push ecx
mov ecx, dword [ebp + 0x34]
push 3
bswap eax
call fcn.00500fc0
mov edx, dword [esp + 0x1c]
add esp, 0xc
cmp dword [esp + 0x14], 0
jne 0x50c740
jmp 0x50c3d4
mov edx, dword [esp + 0x10]
inc edx
cmp edx, dword [esp + 0x34]
mov dword [esp + 0x10], edx
jl 0x50c270
mov eax, dword [esp + 0x20]
dec eax
mov dword [esp + 0x10], 0
test eax, eax
jle 0x50c54d
jmp 0x50c400
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + eax*4 + 0x88]
mov edi, dword [esp + eax*4 + 0x9c]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov ebp, dword [edx + ecx*4]
movzx edx, word [eax + ecx*2]
movzx esi, word [esp + 0x4c]
mov ebx, dword [esp + 0x80]
movzx eax, dx
add eax, esi
mov esi, dword [esp + 0x84]
add esi, ebx
cmp byte [edi + 5], 0
jne 0x50c44f
mov ecx, dword [edi + 0x38]
mov edx, dword [ebp]
mov dword [ecx + 8], edx
jmp 0x50c500
cmp dword [esp + 0x48], 0
je 0x50c4e6
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0xdc]
push eax
mov eax, dword [edx + ecx*4 - 4]
mov ecx, dword [edi + 0x50]
push eax
push edi
call ecx
mov eax, dword [esp + 0xec]
mov edx, dword [esp + 0xe8]
add esp, 0xc
mov ebp, esi
mov ebx, edx
mov dword [esp + 0x68], eax
lea ecx, [esi + 4]
test eax, eax
ja 0x50c4d5
jb 0x50c498
cmp edx, 0x7f
ja 0x50c4a9
and dl, 0x7f
mov eax, 1
add eax, 4
mov byte [ecx], dl
xor esi, esi
jmp 0x50c500
test eax, eax
ja 0x50c4d5
jb 0x50c4b7
cmp edx, 0x3fff
ja 0x50c4d5
shrd edx, eax, 7
shr eax, 7
or dl, 0x80
and bl, 0x7f
mov eax, 2
add eax, 4
mov byte [ecx], dl
mov byte [ecx + 1], bl
xor esi, esi
jmp 0x50c500
push eax
push edx
call fcn.004c01e0
add esp, 8
add eax, 4
xor esi, esi
jmp 0x50c500
sub ebp, 4
cmp dx, 4
jne 0x50c500
mov eax, dword [esp + 0x50]
mov edx, dword [eax + 0x4c]
push ebp
push eax
call edx
add esp, 8
movzx eax, ax
mov edx, dword [edi + 0x54]
add dword [esp + 0x80], eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x60]
add eax, ecx
push ebp
push eax
push edx
mov eax, esi
call fcn.00501320
add esp, 0x18
cmp dword [esp + 0x14], 0
jne 0x50c740
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
inc eax
dec ecx
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x50c400
mov ebp, dword [esp + 0x20]
mov ebx, 1
sub ebx, ebp
cmp ebx, ebp
jge 0x50c635
mov edi, dword [esp + 0x48]
mov eax, ebx
neg eax
mov dword [esp + 0x64], eax
lea esp, [esp]
mov esi, eax
test ebx, ebx
jl 0x50c578
mov esi, ebx
cmp byte [esp + esi + 0x100], 0
jne 0x50c627
test ebx, ebx
jge 0x50c59e
mov ecx, dword [esp + esi*4 + 0xc4]
cmp ecx, dword [esp + esi*4 + 0x84]
jl 0x50c627
test esi, esi
jne 0x50c5af
mov eax, dword [esp + 0x88]
xor edx, edx
xor ecx, ecx
jmp 0x50c5e0
cmp esi, dword [esp + 0x2c]
jge 0x50c5c5
xor edx, edx
test edi, edi
sete dl
add edx, dword [esp + esi*4 + 0xc4]
jmp 0x50c5c9
mov edx, dword [esp + 0x34]
mov eax, dword [esp + esi*4 + 0x88]
xor ecx, ecx
test edi, edi
sete cl
add ecx, dword [esp + esi*4 + 0x84]
sub eax, ecx
mov edi, dword [esp + esi*4 + 0x9c]
lea ebp, [esp + 0x34]
push ebp
push eax
push ecx
push edx
mov eax, edi
call fcn.004ee540
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
jne 0x50c740
mov dx, word [esp + 0x44]
sub dx, word [esp + esi*4 + 0x6c]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x64]
mov word [edi + 0x10], dx
mov edi, dword [esp + 0x48]
mov byte [esp + esi + 0x100], 1
inc ebx
dec eax
cmp ebx, ebp
mov dword [esp + 0x64], eax
jl 0x50c570
cmp dword [esp + 0x114], 0
je 0x50c693
mov esi, dword [esp + 0x50]
cmp word [esi + 0x12], 0
jne 0x50c693
movzx ax, byte [esi + 6]
mov edi, dword [esp + 0x9c]
cmp ax, word [edi + 0x10]
ja 0x50c693
call fcn.004ed310
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], eax
push edi
mov eax, esi
call fcn.00501480
add esp, 8
cmp dword [esp + 0x14], 0
jne 0x50c6d9
mov edx, dword [edi + 0x54]
mov eax, dword [edi + 0x34]
push edx
push edi
push eax
call fcn.005074c0
add esp, 0xc
mov dword [esp + 0x14], eax
jmp 0x50c6d9
mov edi, dword [esp + 0x24]
cmp byte [edi + 0x11], 0
je 0x50c6d9
cmp word [esp + 0x4c], 0
jne 0x50c6d9
xor esi, esi
test ebp, ebp
jle 0x50c6d9
jmp 0x50c6b0
mov ecx, dword [esp + esi*4 + 0x9c]
mov edx, dword [ecx + 0x38]
mov eax, dword [edx + 8]
mov ecx, dword [ecx + 0x54]
lea edx, [esp + 0x14]
push edx
push ecx
push 5
bswap eax
mov ecx, edi
call fcn.00500fc0
inc esi
add esp, 0xc
cmp esi, ebp
jl 0x50c6b0
mov edi, dword [esp + 0x2c]
cmp ebp, edi
mov esi, ebp
jge 0x50c740
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + esi*4 + 0x58]
test eax, eax
jne 0x50c700
mov edx, dword [ecx + 0x54]
mov eax, dword [ecx + 0x34]
push edx
push ecx
push eax
call fcn.005074c0
add esp, 0xc
inc esi
cmp esi, edi
jl 0x50c6e7
mov dword [esp + 0x14], eax
jmp 0x50c740
push 0x58e0b0
push 0xf311
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.004e01f0
lea ecx, [edi*4 + 4]
push ecx
lea edx, [esp + 0x6c]
push 0
push edx
mov dword [esp + 0x30], 0xb
call fcn.00412eb0
add esp, 0x1c
mov esi, dword [esp + 0x3c]
call fcn.004cb700
xor ebp, ebp
cmp dword [esp + 0x2c], ebp
jle 0x50c821
jmp 0x50c760
mov eax, dword [esp + ebp*4 + 0x58]
test eax, eax
je 0x50c816
mov eax, dword [eax + 0x48]
test byte [eax + 0x18], 0x40
mov esi, dword [eax + 0x10]
je 0x50c7b5
dec dword [esi + 0x78]
mov ecx, dword [esi + 0x88]
mov dword [eax + 0xc], ecx
mov edi, dword [esi + 0x3c]
mov dword [esi + 0x88], eax
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0x98]
mov ebx, dword [edi]
push edx
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.00414330
push edx
mov edx, dword [ebx + 0x48]
push eax
push edi
call edx
add esp, 0x10
jmp 0x50c7ba
call fcn.004c1800
cmp dword [esi + 0x78], 0
jne 0x50c816
mov eax, dword [esi + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x50c816
mov al, byte [esi + 0x10]
cmp al, 6
je 0x50c80d
test al, al
je 0x50c80d
cmp al, 2
jb 0x50c7fa
mov eax, dword [0x5a2b9c]
test eax, eax
je 0x50c7e6
call eax
mov eax, esi
call fcn.005052e0
mov eax, dword [0x5a2ba0]
test eax, eax
je 0x50c80d
call eax
jmp 0x50c80d
cmp byte [esi + 4], 0
jne 0x50c80d
push 0
push 0
push esi
call fcn.004cd760
add esp, 0xc
push esi
call fcn.004d5e00
add esp, 4
inc ebp
cmp ebp, dword [esp + 0x2c]
jl 0x50c760
xor ebp, ebp
cmp dword [esp + 0x20], ebp
jle 0x50c8f4
lea ecx, [ecx]
mov eax, dword [esp + ebp*4 + 0x9c]
test eax, eax
je 0x50c8e9
mov eax, dword [eax + 0x48]
test byte [eax + 0x18], 0x40
mov esi, dword [eax + 0x10]
je 0x50c888
dec dword [esi + 0x78]
mov ecx, dword [esi + 0x88]
mov dword [eax + 0xc], ecx
mov edi, dword [esi + 0x3c]
mov dword [esi + 0x88], eax
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0x98]
mov ebx, dword [edi]
push edx
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.00414330
push edx
mov edx, dword [ebx + 0x48]
push eax
push edi
call edx
add esp, 0x10
jmp 0x50c88d
call fcn.004c1800
cmp dword [esi + 0x78], 0
jne 0x50c8e9
mov eax, dword [esi + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x50c8e9
mov al, byte [esi + 0x10]
cmp al, 6
je 0x50c8e0
test al, al
je 0x50c8e0
cmp al, 2
jb 0x50c8cd
mov eax, dword [0x5a2b9c]
test eax, eax
je 0x50c8b9
call eax
mov eax, esi
call fcn.005052e0
mov eax, dword [0x5a2ba0]
test eax, eax
je 0x50c8e0
call eax
jmp 0x50c8e0
cmp byte [esi + 4], 0
jne 0x50c8e0
push 0
push 0
push esi
call fcn.004cd760
add esp, 0xc
push esi
call fcn.004d5e00
add esp, 4
inc ebp
cmp ebp, dword [esp + 0x20]
jl 0x50c830
mov ecx, dword [esp + 0x108]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409b58
add esp, 0xfc
ret