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

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, eax
cmp byte [esi + 0x42], 1
push edi
jne 0x438d9a
mov dl, byte [esi + 0x40]
test dl, 2
je 0x438d9a
cmp byte [esi + 0x45], 0
je 0x438d9a
mov eax, dword [esi + 0x10]
mov edi, dword [esp + 0x38]
mov ecx, dword [esi + 0x14]
cmp eax, edi
jne 0x438d75
cmp ecx, dword [esp + 0x3c]
jne 0x438d75
mov eax, dword [esp + 0x44]
mov dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test dl, 8
je 0x438d9a
cmp ecx, dword [esp + 0x3c]
jg 0x438d9a
jl 0x438d86
cmp eax, edi
jae 0x438d9a
mov ecx, dword [esp + 0x44]
mov dword [ecx], 0xffffffff
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov edi, dword [esp + 0x34]
test edi, edi
je 0x438db3
mov eax, edi
call fcn.00445050
mov dword [esp + 0x14], eax
mov byte [edi + 0xb], 0
jmp 0x438dbb
mov dword [esp + 0x14], 0
call fcn.00438a60
test eax, eax
jne 0x439165
cmp byte [esi + 0x42], al
jne 0x438ddf
mov edx, dword [esp + 0x44]
mov dword [edx], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ecx, 1
sub ecx, dword [esp + 0x40]
mov dword [esp + 0x24], ecx
lea esp, [esp]
movsx eax, byte [esi + 0x44]
mov ebx, dword [esi + eax*4 + 0x78]
movzx ebp, word [ebx + 0x12]
dec ebp
mov dword [esp + 0x18], ebp
sar ebp, cl
cmp dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov word [esi + eax*2 + 0x50], bp
jne 0x438f02
jmp 0x438e20
mov eax, dword [ebx + 0x40]
mov ax, word [eax + ebp*2]
mov ch, al
mov cl, ah
movzx eax, cx
movzx ecx, word [ebx + 0x14]
and eax, ecx
add eax, dword [ebx + 0x44]
cmp byte [ebx + 3], 0
je 0x438e54
cmp byte [eax], 0x80
jb 0x438e53
mov ecx, dword [ebx + 0x3c]
inc eax
cmp eax, ecx
jae 0x439068
cmp byte [eax], 0x80
jae 0x438e45
inc eax
lea edi, [esp + 0x28]
call fcn.004274c0
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
cmp eax, edx
mov ecx, dword [esp + 0x28]
jg 0x438eb7
jl 0x438e75
cmp ecx, dword [esp + 0x38]
jae 0x438eab
lea eax, [ebp + 1]
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
jle 0x438ec8
or edi, 0xffffffff
cmp byte [ebx + 4], 0
jne 0x439110
movzx edx, word [ebx + 0x12]
cmp eax, edx
jl 0x439025
movzx ecx, byte [ebx + 5]
mov edx, dword [ebx + 0x38]
mov ecx, dword [ecx + edx + 8]
jmp 0x43903f
cmp eax, edx
jl 0x438edd
jg 0x438eb7
cmp ecx, dword [esp + 0x38]
jbe 0x438edd
lea eax, [ebp - 1]
cmp dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
jg 0x438ed6
mov edx, dword [esp + 0x18]
lea ebp, [edx + eax]
sar ebp, 1
jmp 0x438e20
mov edi, 1
jmp 0x438e85
or byte [esi + 0x40], 2
mov dword [esi + 0x14], eax
movsx eax, byte [esi + 0x44]
mov dword [esi + 0x10], ecx
mov word [esi + eax*2 + 0x50], bp
cmp byte [ebx + 4], 0
jne 0x439093
mov dword [esp + 0x10], ebp
mov eax, ebp
jmp 0x438e8f
mov ecx, dword [ebx + 0x40]
mov dx, word [ecx + ebp*2]
movzx ecx, word [ebx + 0x14]
mov ah, dl
mov al, dh
movzx edx, byte [ebx + 7]
movzx eax, ax
and eax, ecx
add eax, dword [ebx + 0x44]
movzx ecx, byte [eax]
cmp ecx, edx
jg 0x438f3a
mov edx, dword [esp + 0x34]
push edx
inc eax
push eax
push ecx
call dword [esp + 0x20]
add esp, 0xc
mov edi, eax
jmp 0x438ff1
mov dl, byte [eax + 1]
test dl, dl
js 0x438f6c
and ecx, 0x7f
movzx edx, dl
shl ecx, 7
add ecx, edx
movzx edx, word [ebx + 0xa]
cmp ecx, edx
jg 0x438f6c
mov edx, dword [esp + 0x34]
push edx
add eax, 2
push eax
push ecx
call dword [esp + 0x20]
add esp, 0xc
mov edi, eax
jmp 0x438ff1
movzx ecx, byte [ebx + 6]
mov edx, dword [ebx + 0x50]
lea edi, [esi + 0x10]
push edi
sub eax, ecx
push eax
push ebx
call edx
mov edi, dword [edi]
add esp, 0xc
cmp edi, 2
mov dword [esp + 0x20], edi
jl 0x4390b3
lea eax, [edi + 0x12]
cdq
push edx
push eax
call fcn.00423910
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4390d6
movsx ecx, byte [esi + 0x44]
push 2
push eax
push edi
xor eax, eax
mov edi, esi
mov word [esi + ecx*2 + 0x50], bp
call fcn.00438680
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4390ef
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
call dword [esp + 0x20]
mov edx, dword [esp + 0x28]
add esp, 0xc
push edx
mov edi, eax
call fcn.00423c10
add esp, 4
test edi, edi
jge 0x438ffe
lea eax, [ebp + 1]
mov dword [esp + 0x10], eax
jmp 0x43900b
jle 0x439135
lea ecx, [ebp - 1]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jg 0x438e85
lea ebp, [ecx + eax]
sar ebp, 1
jmp 0x438f02
mov ecx, dword [ebx + 0x40]
mov dx, word [ecx + eax*2]
mov ch, dl
mov cl, dh
movzx edx, cx
movzx ecx, word [ebx + 0x14]
and edx, ecx
mov ecx, dword [ebx + 0x38]
mov ecx, dword [edx + ecx]
movsx edx, byte [esi + 0x44]
bswap ecx
mov word [esi + edx*2 + 0x50], ax
push ecx
mov eax, esi
call fcn.004389f0
mov edi, eax
add esp, 4
test edi, edi
jne 0x439159
mov ecx, dword [esp + 0x24]
jmp 0x438df0
push 0x532e08
push 0xee15
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00425af0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x44]
mov dword [eax], 0
xor edi, edi
xor ecx, ecx
and byte [esi + 0x40], 0xf9
mov word [esi + 0x22], cx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push 0x532e08
push 0xee5e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00425af0
add esp, 0x14
jmp 0x439154
xor ecx, ecx
and byte [esi + 0x40], 0xf9
mov edi, 7
mov word [esi + 0x22], cx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00423c10
xor ecx, ecx
add esp, 4
and byte [esi + 0x40], 0xf9
mov word [esi + 0x22], cx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
movsx edx, byte [esi + 0x44]
mov eax, dword [esp + 0x44]
mov word [esi + edx*2 + 0x50], bp
mov dword [eax], edi
xor edi, edi
xor ecx, ecx
and byte [esi + 0x40], 0xf9
mov word [esi + 0x22], cx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x34]
mov dword [ecx], 0
movsx edx, byte [esi + 0x44]
xor edi, edi
mov word [esi + edx*2 + 0x50], bp
cmp byte [eax + 0xb], 0
je 0x439159
mov edi, 0xb
xor ecx, ecx
and byte [esi + 0x40], 0xf9
mov word [esi + 0x22], cx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret