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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov ecx, dword [ebp + 8]
xor eax, eax
push ebx
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
push esi
mov esi, dword [ebp + 0x10]
setne al
push edi
mov edi, dword [ecx]
mov dword [esp + 0x14], edi
movzx edx, byte [eax + esi + 0x19]
mov dword [esp + 0x54], eax
mov eax, dword [esi + eax*4 + 0x1c]
mov dword [esp + 0x3c], edx
cmp edx, ebx
je 0x48e70d
cmp eax, ebx
jne 0x48e70d
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x40]
push eax
push esi
push edx
push ecx
lea eax, [esp + 0x34]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebx
call fcn.0048bea0
add esp, 0x10
test eax, eax
jne 0x48e6b5
xor ecx, ecx
mov dword [esp + 0x38], ecx
cmp dword [esi + 0x14], ebx
jle 0x48e30a
mov eax, 3
mov dword [esp + 0x60], 0x52f988
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], 0x52f984
mov dword [esp + 0x6c], eax
mov edi, esi
jmp 0x48dd26
mov ecx, dword [esp + 0x38]
mov edi, edx
mov eax, dword [esp + 0x24]
mov esi, dword [ebp + 8]
test eax, eax
je 0x48dd36
mov edx, dword [eax + ecx*4]
jmp 0x48dd39
mov edx, dword [edi + 0x24]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x48dd55
mov eax, dword [eax + 8]
mov eax, dword [eax + ecx*4]
lea ecx, [eax + eax*2]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + ecx*8]
jmp 0x48dd5a
mov ecx, 0x530dc8
lea eax, [edx + edx*2]
mov edx, dword [edi]
mov edx, dword [edx + 0x10]
add eax, eax
add eax, eax
add eax, eax
mov edx, dword [eax + edx]
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x70], edx
mov eax, ecx
test ecx, ecx
je 0x48dd8f
cmp byte [ecx], 0
je 0x48dd88
inc eax
cmp byte [eax], 0
jne 0x48dd82
sub eax, ecx
and eax, 0x3fffffff
mov dword [esp + 0x5c], eax
mov eax, edx
test edx, edx
jne 0x48dd9f
mov dword [esp + 0x34], edx
jmp 0x48ddb5
cmp byte [edx], 0
je 0x48ddaa
inc eax
cmp byte [eax], 0
jne 0x48dda4
sub eax, edx
and eax, 0x3fffffff
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esi]
push 1
mov dword [esp + 0x78], eax
push 0x1a
push ecx
lea eax, [esp + 0x7c]
call fcn.0047a1d0
mov edi, dword [esi]
add esp, 0xc
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x48ddee
push eax
push edi
call fcn.0047a670
push 0
push edi
call fcn.0047a670
add esp, 0x10
jmp 0x48ddf5
mov ebx, eax
call fcn.0047a0f0
mov edx, dword [esi]
push 1
push 0x1a
push edx
lea eax, [esp + 0x64]
call fcn.0047a1d0
mov edi, dword [esi]
add esp, 0xc
mov dword [esp + 0x48], eax
test eax, eax
jne 0x48de26
push eax
push edi
call fcn.0047a670
push 0
push edi
call fcn.0047a670
add esp, 0x10
jmp 0x48de2d
mov ebx, eax
call fcn.0047a0f0
mov eax, dword [esi]
push 1
push 0x1a
push eax
lea eax, [esp + 0x6c]
call fcn.0047a1d0
mov edi, dword [esi]
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x48de5b
push eax
push edi
call fcn.0047a670
push ebx
push edi
call fcn.0047a670
add esp, 0x10
jmp 0x48de60
call fcn.0047a0f0
mov esi, dword [esi]
mov ecx, 0x30
call fcn.00457350
mov esi, eax
mov dword [esp + 0x44], esi
test esi, esi
je 0x48de94
push 0x30
push 0
push esi
call fcn.004da410
add esp, 0xc
or ecx, 0xffffffff
mov byte [esi], 0x76
mov word [esi + 0x1e], cx
mov dword [esi + 0x2c], 1
mov edx, dword [ebp + 8]
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov edi, dword [edx]
mov eax, ebx
call fcn.0047a320
mov ebx, dword [ebp + 8]
mov esi, dword [ebx]
mov ecx, 0x30
call fcn.00457350
mov dword [esp + 0x2c], eax
test eax, eax
je 0x48dedf
push 0x30
mov esi, eax
push 0
push esi
call fcn.004da410
add esp, 0xc
or eax, 0xffffffff
mov byte [esi], 0x4c
mov word [esi + 0x1e], ax
mov dword [esi + 0x2c], 1
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x2c]
mov edi, dword [ebx]
call fcn.0047a320
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push ecx
push edx
call fcn.0047a3b0
add esp, 8
cmp dword [ebp + 0x14], 0
mov dword [esp + 0x1c], eax
je 0x48e0e7
mov eax, dword [ebx]
push 1
push 0x1a
push eax
lea eax, [esp + 0x64]
call fcn.0047a1d0
mov esi, dword [ebx]
add esp, 0xc
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x48df47
push eax
push esi
call fcn.0047a670
push 0
push esi
call fcn.0047a670
add esp, 0x10
jmp 0x48df51
mov ebx, eax
call fcn.0047a0f0
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
push 1
push 0x1a
push ecx
lea eax, [esp + 0x74]
call fcn.0047a1d0
mov esi, dword [ebx]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x48df7f
push eax
push esi
call fcn.0047a670
push edi
push esi
call fcn.0047a670
add esp, 0x10
jmp 0x48df89
mov ebx, edi
call fcn.0047a0f0
mov ebx, dword [ebp + 8]
mov esi, dword [ebx]
mov ecx, 0x30
call fcn.00457350
mov esi, eax
mov dword [esp + 0x44], esi
test esi, esi
je 0x48dfbd
push 0x30
push 0
push esi
call fcn.004da410
add esp, 0xc
or edx, 0xffffffff
mov byte [esi], 0x76
mov word [esi + 0x1e], dx
mov dword [esi + 0x2c], 1
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
mov eax, edi
mov edi, dword [ebx]
call fcn.0047a320
mov eax, dword [ebx]
push 1
push 0x1a
push eax
lea eax, [esp + 0x64]
call fcn.0047a1d0
mov esi, dword [ebx]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x48dffc
push eax
push esi
call fcn.0047a670
push edi
push esi
call fcn.0047a670
add esp, 0x10
jmp 0x48e006
mov ebx, edi
call fcn.0047a0f0
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
push 1
push 0x1a
push ecx
lea eax, [esp + 0x6c]
call fcn.0047a1d0
mov esi, dword [ebx]
add esp, 0xc
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x48e037
push eax
push esi
call fcn.0047a670
push 0
push esi
call fcn.0047a670
add esp, 0x10
jmp 0x48e041
mov ebx, eax
call fcn.0047a0f0
mov ebx, dword [ebp + 8]
mov esi, dword [ebx]
mov ecx, 0x30
call fcn.00457350
mov esi, eax
mov dword [esp + 0x48], esi
test esi, esi
je 0x48e075
push 0x30
push 0
push esi
call fcn.004da410
add esp, 0xc
or edx, 0xffffffff
mov byte [esi], 0x76
mov word [esi + 0x1e], dx
mov dword [esi + 0x2c], 1
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov esi, edi
mov edi, dword [ebx]
call fcn.0047a320
mov esi, dword [ebx]
mov ecx, 0x30
call fcn.00457350
mov dword [esp + 0x2c], eax
test eax, eax
je 0x48e0ba
push 0x30
mov esi, eax
push 0
push esi
call fcn.004da410
add esp, 0xc
or eax, 0xffffffff
mov byte [esi], 0x46
mov word [esi + 0x1e], ax
mov dword [esi + 0x2c], 1
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x2c]
mov edi, dword [ebx]
call fcn.0047a320
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ecx
push edx
call fcn.0047a3b0
add esp, 8
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
cmp eax, 6
je 0x48e2f1
cmp eax, 9
jne 0x48e1c8
cmp dword [ebp + 0x14], 0
je 0x48e2f1
mov eax, dword [ebx]
push 1
push 0x1a
push eax
lea eax, [esp + 0x64]
call fcn.0047a1d0
mov esi, dword [ebx]
add esp, 0xc
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x48e138
push eax
push esi
call fcn.0047a670
push 0
push esi
call fcn.0047a670
add esp, 0x10
jmp 0x48e142
mov ebx, eax
call fcn.0047a0f0
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
push 1
push 0x1a
push ecx
lea eax, [esp + 0x74]
call fcn.0047a1d0
mov esi, dword [ebx]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x48e170
push eax
push esi
call fcn.0047a670
push edi
push esi
call fcn.0047a670
add esp, 0x10
jmp 0x48e17a
mov ebx, edi
call fcn.0047a0f0
mov ebx, dword [ebp + 8]
mov esi, dword [ebx]
mov ecx, 0x30
call fcn.00457350
mov esi, eax
mov dword [esp + 0x48], esi
test esi, esi
je 0x48e1ae
push 0x30
push 0
push esi
call fcn.004da410
add esp, 0xc
or edx, 0xffffffff
mov byte [esi], 0x76
mov word [esi + 0x1e], dx
mov dword [esi + 0x2c], 1
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov eax, edi
mov edi, dword [ebx]
call fcn.0047a320
mov eax, dword [esp + 0x48]
jmp 0x48e296
cmp eax, 8
jne 0x48e241
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
mov eax, dword [esp + 0x50]
mov eax, dword [edx + eax + 4]
test eax, eax
je 0x48e1f8
mov ecx, dword [esp + 0x14]
push 0
push 0
push eax
push ecx
call fcn.0047a7f0
add esp, 0x10
jmp 0x48e296
mov esi, dword [ebx]
mov ecx, 0x30
call fcn.00457350
mov esi, eax
test esi, esi
je 0x48e228
push 0x30
push 0
push esi
call fcn.004da410
add esp, 0xc
or edx, 0xffffffff
mov byte [esi], 0x62
mov word [esi + 0x1e], dx
mov dword [esi + 0x2c], 1
mov edi, dword [ebx]
test esi, esi
jne 0x48e28a
push esi
push edi
call fcn.0047a670
push esi
push edi
call fcn.0047a670
add esp, 0x10
jmp 0x48e294
mov esi, dword [ebx]
mov ecx, 0x30
call fcn.00457350
mov esi, eax
test esi, esi
je 0x48e271
push 0x30
push 0
push esi
call fcn.004da410
add esp, 0xc
or eax, 0xffffffff
mov byte [esi], 0x62
mov word [esi + 0x1e], ax
mov dword [esi + 0x2c], 1
mov edi, dword [ebx]
test esi, esi
jne 0x48e28a
push esi
push edi
call fcn.0047a670
push esi
push edi
call fcn.0047a670
add esp, 0x10
jmp 0x48e294
mov ebx, esi
call fcn.0047a0f0
mov ebx, dword [ebp + 8]
mov eax, esi
mov ecx, dword [esp + 0x28]
mov edi, eax
mov eax, ebx
call fcn.0047b050
mov dword [esp + 0x28], eax
test eax, eax
je 0x48e2f1
mov ecx, dword [eax]
mov edx, dword [eax + 0xc]
mov edi, dword [esp + 0x70]
mov esi, dword [ebx]
lea ecx, [ecx + ecx*4]
lea eax, [edx + ecx*4 - 0x14]
mov dword [esp + 0x50], eax
test edi, edi
jne 0x48e2c9
xor esi, esi
jmp 0x48e2ea
mov ebx, dword [esp + 0x34]
lea ecx, [ebx + 1]
call fcn.00457350
mov esi, eax
test esi, esi
je 0x48e2ea
push ebx
push edi
push esi
call fcn.004db780
add esp, 0xc
mov byte [esi + ebx], 0
mov ecx, dword [esp + 0x50]
mov dword [ecx + 4], esi
mov eax, dword [esp + 0x38]
mov edx, dword [ebp + 0x10]
inc eax
mov dword [esp + 0x38], eax
cmp eax, dword [edx + 0x14]
jl 0x48dd20
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
test edi, edi
je 0x48e33c
test eax, eax
je 0x48e33c
cmp eax, dword [edi + 0xf0]
jb 0x48e33c
cmp eax, dword [edi + 0xf4]
jae 0x48e33c
mov ecx, dword [edi + 0xec]
mov dword [eax], ecx
dec dword [edi + 0xe4]
mov dword [edi + 0xec], eax
jmp 0x48e345
push eax
call fcn.004570d0
add esp, 4
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
mov dword [esp + 0x4c], ecx
mov eax, ecx
test ecx, ecx
je 0x48e36d
cmp byte [ecx], 0
je 0x48e366
lea esp, [esp]
inc eax
cmp byte [eax], 0
jne 0x48e360
sub eax, ecx
and eax, 0x3fffffff
cmp dword [esp + 0x3c], 6
mov dword [esp + 0x24], eax
jne 0x48e4d9
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], ecx
mov eax, str.foreign_key_constraint_failed
lea esp, [esp]
inc eax
cmp byte [eax], 0
jne 0x48e390
sub eax, str.foreign_key_constraint_failed
and eax, 0x3fffffff
lea ecx, [eax + 0x31]
mov esi, edi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x50], ecx
call fcn.00457350
mov ebx, eax
test ebx, ebx
je 0x48e416
mov ecx, dword [esp + 0x50]
push ecx
push 0
push ebx
call fcn.004da410
mov esi, dword [esp + 0x78]
or edx, 0xffffffff
lea eax, [esi + 1]
add esp, 0xc
mov byte [ebx], 0x38
mov word [ebx + 0x1e], dx
test eax, eax
jne 0x48e3ef
mov eax, 0x400
or word [ebx + 2], ax
mov dword [ebx + 4], 0
jmp 0x48e40b
push esi
lea eax, [ebx + 0x30]
push str.foreign_key_constraint_failed
push eax
mov dword [ebx + 4], eax
call fcn.004db780
mov ecx, dword [ebx + 4]
add esp, 0xc
mov byte [esi + ecx], 0
mov dword [ebx + 0x2c], 1
mov byte [ebx + 1], 2
mov ecx, 0x40
mov esi, edi
call fcn.00457350
mov esi, eax
test esi, esi
je 0x48e461
push 0x40
push 0
push esi
call fcn.004da410
mov edx, 1
mov word [esi + 2], dx
movsx eax, word [esi]
add esp, 0xc
push eax
push edx
push edi
mov eax, esi
call fcn.004869e0
add esp, 0xc
cmp byte [edi + 0x1e], 0
mov esi, eax
je 0x48e465
push esi
mov eax, edi
call fcn.00486c30
add esp, 4
xor esi, esi
jmp 0x48e49e
movsx eax, word [esi]
lea ecx, [eax*8]
sub ecx, eax
lea edx, [esi + ecx*8 - 0x30]
push edi
lea eax, [esp + 0x74]
mov dword [esp + 0x4c], edx
call fcn.004837d0
mov ecx, dword [esp + 0x4c]
add esp, 4
mov dword [ecx + 4], eax
push edi
xor eax, eax
call fcn.004837d0
mov edx, dword [esp + 0x4c]
add esp, 4
mov dword [edx], eax
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push esi
mov esi, dword [ebp + 8]
mov edi, ebx
xor ecx, ecx
mov eax, esi
call fcn.0047b050
push esi
mov ecx, eax
call fcn.004961d0
mov edi, dword [esp + 0x38]
add esp, 0x24
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov cl, byte [edi + 0xe2]
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x24]
add ecx, 0x4d
mov esi, edi
mov byte [edi + 0xe2], 0
call fcn.00457350
mov ebx, eax
mov dword [esp + 0x2c], ebx
test ebx, ebx
je 0x48e515
mov eax, dword [esp + 0x24]
add eax, 0x4d
push eax
push 0
push ebx
call fcn.004da410
add esp, 0xc
mov dword [esp + 0x50], ebx
test ebx, ebx
je 0x48e625
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x4c]
lea esi, [ebx + 0x24]
push ecx
lea eax, [esi + 0x28]
push edx
mov dword [ebx + 0x1c], esi
push eax
mov dword [esp + 0x3c], esi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
call fcn.004db780
mov eax, dword [esp + 0x28]
add esp, 0xc
push 0
push 1
push eax
push edi
call fcn.0047a7f0
mov ecx, dword [esp + 0x38]
push 1
push ecx
push edi
mov dword [esi + 0x14], eax
call fcn.0047aa70
mov edx, dword [esp + 0x3c]
add esp, 0x1c
push 1
push edx
push edi
mov dword [esi + 0x18], eax
call fcn.0047af30
add esp, 0xc
cmp dword [esp + 0x18], 0
mov dword [esi + 8], eax
je 0x48e625
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov ecx, 0x30
call fcn.00457350
mov esi, eax
test esi, esi
je 0x48e5bd
push 0x30
push 0
push esi
call fcn.004da410
add esp, 0xc
or ecx, 0xffffffff
mov byte [esi], 0x13
mov word [esi + 0x1e], cx
mov dword [esi + 0x2c], 1
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [esp + 0x48], eax
test esi, esi
jne 0x48e5e7
mov ecx, dword [esp + 0x18]
push ecx
mov edx, eax
push edx
call fcn.0047a670
mov eax, dword [esp + 0x50]
push esi
push eax
call fcn.0047a670
add esp, 0x10
jmp 0x48e610
mov eax, dword [esp + 0x18]
mov ecx, 0x100
mov dword [esi + 8], eax
test word [eax + 2], cx
je 0x48e605
mov edx, ecx
or word [esi + 2], dx
mov eax, dword [eax + 0x14]
mov dword [esi + 0x14], eax
mov ebx, esi
call fcn.0047a0f0
mov ebx, dword [esp + 0x2c]
push 0
push 1
push esi
push edi
mov dword [esp + 0x28], esi
call fcn.0047a7f0
add esp, 0x10
mov dword [ebx + 0xc], eax
mov edx, dword [esp + 0x1c]
mov cl, byte [esp + 0x13]
push edx
push edi
mov byte [edi + 0xe2], cl
call fcn.0047a670
mov eax, dword [esp + 0x20]
push eax
push edi
call fcn.0047a670
mov ebx, dword [esp + 0x38]
add esp, 0x10
mov esi, edi
call fcn.0047b260
cmp dword [esp + 0x20], 0
je 0x48e69c
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
mov eax, esi
call fcn.00496170
mov eax, edi
cmp eax, dword [esi + 0xf0]
jb 0x48e691
cmp eax, dword [esi + 0xf4]
jae 0x48e691
mov ecx, dword [esi + 0xec]
mov dword [eax], ecx
dec dword [esi + 0xe4]
mov dword [esi + 0xec], eax
jmp 0x48e69a
push eax
call fcn.004570d0
add esp, 4
mov edi, esi
cmp byte [edi + 0x1e], 1
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
jne 0x48e6be
mov edi, eax
mov eax, dword [esp + 0x14]
call fcn.0048d1f0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x3c]
cmp edx, 6
je 0x48e6dc
cmp edx, 9
jne 0x48e6d7
cmp dword [ebp + 0x14], 0
jne 0x48e6d7
mov byte [ecx], 0x6a
jmp 0x48e6df
mov byte [ecx], 0x6b
jmp 0x48e6df
mov byte [ecx], 0x74
cmp dword [ebp + 0x14], 0
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x44]
mov dword [eax + 0x14], edx
mov ecx, dword [ecx + 0x44]
mov edx, dword [ebp + 0x10]
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x54]
mov dword [edx + ecx*4 + 0x1c], eax
setne dl
add dl, 0x6a
mov byte [eax + 8], dl
mov eax, dword [esp + 0x50]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret