Function at 0x49fb10
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 0x4a05ad
cmp eax, ebx
jne 0x4a05ad
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.0049dd40
add esp, 0x10
test eax, eax
jne 0x4a0555
xor ecx, ecx
mov dword [esp + 0x38], ecx
cmp dword [esi + 0x14], ebx
jle 0x4a01aa
mov eax, 3
mov dword [esp + 0x60], 0x545920
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], 0x54591c
mov dword [esp + 0x6c], eax
mov edi, esi
jmp 0x49fbc6
mov ecx, dword [esp + 0x38]
mov edi, edx
mov eax, dword [esp + 0x24]
mov esi, dword [ebp + 8]
test eax, eax
je 0x49fbd6
mov edx, dword [eax + ecx*4]
jmp 0x49fbd9
mov edx, dword [edi + 0x24]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x49fbf5
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 0x49fbfa
mov ecx, 0x546d60
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 0x49fc2f
cmp byte [ecx], 0
je 0x49fc28
inc eax
cmp byte [eax], 0
jne 0x49fc22
sub eax, ecx
and eax, 0x3fffffff
mov dword [esp + 0x5c], eax
mov eax, edx
test edx, edx
jne 0x49fc3f
mov dword [esp + 0x34], edx
jmp 0x49fc55
cmp byte [edx], 0
je 0x49fc4a
inc eax
cmp byte [eax], 0
jne 0x49fc44
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.0048c060
mov edi, dword [esi]
add esp, 0xc
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x49fc8e
push eax
push edi
call fcn.0048c500
push 0
push edi
call fcn.0048c500
add esp, 0x10
jmp 0x49fc95
mov ebx, eax
call fcn.0048bf80
mov edx, dword [esi]
push 1
push 0x1a
push edx
lea eax, [esp + 0x64]
call fcn.0048c060
mov edi, dword [esi]
add esp, 0xc
mov dword [esp + 0x48], eax
test eax, eax
jne 0x49fcc6
push eax
push edi
call fcn.0048c500
push 0
push edi
call fcn.0048c500
add esp, 0x10
jmp 0x49fccd
mov ebx, eax
call fcn.0048bf80
mov eax, dword [esi]
push 1
push 0x1a
push eax
lea eax, [esp + 0x6c]
call fcn.0048c060
mov edi, dword [esi]
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x49fcfb
push eax
push edi
call fcn.0048c500
push ebx
push edi
call fcn.0048c500
add esp, 0x10
jmp 0x49fd00
call fcn.0048bf80
mov esi, dword [esi]
mov ecx, 0x30
call fcn.004691e0
mov esi, eax
mov dword [esp + 0x44], esi
test esi, esi
je 0x49fd34
push 0x30
push 0
push esi
call fcn.004ecd20
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.0048c1b0
mov ebx, dword [ebp + 8]
mov esi, dword [ebx]
mov ecx, 0x30
call fcn.004691e0
mov dword [esp + 0x2c], eax
test eax, eax
je 0x49fd7f
push 0x30
mov esi, eax
push 0
push esi
call fcn.004ecd20
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.0048c1b0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push ecx
push edx
call fcn.0048c240
add esp, 8
cmp dword [ebp + 0x14], 0
mov dword [esp + 0x1c], eax
je 0x49ff87
mov eax, dword [ebx]
push 1
push 0x1a
push eax
lea eax, [esp + 0x64]
call fcn.0048c060
mov esi, dword [ebx]
add esp, 0xc
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x49fde7
push eax
push esi
call fcn.0048c500
push 0
push esi
call fcn.0048c500
add esp, 0x10
jmp 0x49fdf1
mov ebx, eax
call fcn.0048bf80
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
push 1
push 0x1a
push ecx
lea eax, [esp + 0x74]
call fcn.0048c060
mov esi, dword [ebx]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x49fe1f
push eax
push esi
call fcn.0048c500
push edi
push esi
call fcn.0048c500
add esp, 0x10
jmp 0x49fe29
mov ebx, edi
call fcn.0048bf80
mov ebx, dword [ebp + 8]
mov esi, dword [ebx]
mov ecx, 0x30
call fcn.004691e0
mov esi, eax
mov dword [esp + 0x44], esi
test esi, esi
je 0x49fe5d
push 0x30
push 0
push esi
call fcn.004ecd20
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.0048c1b0
mov eax, dword [ebx]
push 1
push 0x1a
push eax
lea eax, [esp + 0x64]
call fcn.0048c060
mov esi, dword [ebx]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x49fe9c
push eax
push esi
call fcn.0048c500
push edi
push esi
call fcn.0048c500
add esp, 0x10
jmp 0x49fea6
mov ebx, edi
call fcn.0048bf80
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
push 1
push 0x1a
push ecx
lea eax, [esp + 0x6c]
call fcn.0048c060
mov esi, dword [ebx]
add esp, 0xc
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x49fed7
push eax
push esi
call fcn.0048c500
push 0
push esi
call fcn.0048c500
add esp, 0x10
jmp 0x49fee1
mov ebx, eax
call fcn.0048bf80
mov ebx, dword [ebp + 8]
mov esi, dword [ebx]
mov ecx, 0x30
call fcn.004691e0
mov esi, eax
mov dword [esp + 0x48], esi
test esi, esi
je 0x49ff15
push 0x30
push 0
push esi
call fcn.004ecd20
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.0048c1b0
mov esi, dword [ebx]
mov ecx, 0x30
call fcn.004691e0
mov dword [esp + 0x2c], eax
test eax, eax
je 0x49ff5a
push 0x30
mov esi, eax
push 0
push esi
call fcn.004ecd20
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.0048c1b0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ecx
push edx
call fcn.0048c240
add esp, 8
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
cmp eax, 6
je 0x4a0191
cmp eax, 9
jne 0x4a0068
cmp dword [ebp + 0x14], 0
je 0x4a0191
mov eax, dword [ebx]
push 1
push 0x1a
push eax
lea eax, [esp + 0x64]
call fcn.0048c060
mov esi, dword [ebx]
add esp, 0xc
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x49ffd8
push eax
push esi
call fcn.0048c500
push 0
push esi
call fcn.0048c500
add esp, 0x10
jmp 0x49ffe2
mov ebx, eax
call fcn.0048bf80
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
push 1
push 0x1a
push ecx
lea eax, [esp + 0x74]
call fcn.0048c060
mov esi, dword [ebx]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4a0010
push eax
push esi
call fcn.0048c500
push edi
push esi
call fcn.0048c500
add esp, 0x10
jmp 0x4a001a
mov ebx, edi
call fcn.0048bf80
mov ebx, dword [ebp + 8]
mov esi, dword [ebx]
mov ecx, 0x30
call fcn.004691e0
mov esi, eax
mov dword [esp + 0x48], esi
test esi, esi
je 0x4a004e
push 0x30
push 0
push esi
call fcn.004ecd20
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.0048c1b0
mov eax, dword [esp + 0x48]
jmp 0x4a0136
cmp eax, 8
jne 0x4a00e1
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 0x4a0098
mov ecx, dword [esp + 0x14]
push 0
push 0
push eax
push ecx
call fcn.0048c680
add esp, 0x10
jmp 0x4a0136
mov esi, dword [ebx]
mov ecx, 0x30
call fcn.004691e0
mov esi, eax
test esi, esi
je 0x4a00c8
push 0x30
push 0
push esi
call fcn.004ecd20
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 0x4a012a
push esi
push edi
call fcn.0048c500
push esi
push edi
call fcn.0048c500
add esp, 0x10
jmp 0x4a0134
mov esi, dword [ebx]
mov ecx, 0x30
call fcn.004691e0
mov esi, eax
test esi, esi
je 0x4a0111
push 0x30
push 0
push esi
call fcn.004ecd20
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 0x4a012a
push esi
push edi
call fcn.0048c500
push esi
push edi
call fcn.0048c500
add esp, 0x10
jmp 0x4a0134
mov ebx, esi
call fcn.0048bf80
mov ebx, dword [ebp + 8]
mov eax, esi
mov ecx, dword [esp + 0x28]
mov edi, eax
mov eax, ebx
call fcn.0048cee0
mov dword [esp + 0x28], eax
test eax, eax
je 0x4a0191
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 0x4a0169
xor esi, esi
jmp 0x4a018a
mov ebx, dword [esp + 0x34]
lea ecx, [ebx + 1]
call fcn.004691e0
mov esi, eax
test esi, esi
je 0x4a018a
push ebx
push edi
push esi
call fcn.004ee090
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 0x49fbc0
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
test edi, edi
je 0x4a01dc
test eax, eax
je 0x4a01dc
cmp eax, dword [edi + 0xf0]
jb 0x4a01dc
cmp eax, dword [edi + 0xf4]
jae 0x4a01dc
mov ecx, dword [edi + 0xec]
mov dword [eax], ecx
dec dword [edi + 0xe4]
mov dword [edi + 0xec], eax
jmp 0x4a01e5
push eax
call fcn.00468f60
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 0x4a020d
cmp byte [ecx], 0
je 0x4a0206
lea esp, [esp]
inc eax
cmp byte [eax], 0
jne 0x4a0200
sub eax, ecx
and eax, 0x3fffffff
cmp dword [esp + 0x3c], 6
mov dword [esp + 0x24], eax
jne 0x4a0379
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 0x4a0230
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.004691e0
mov ebx, eax
test ebx, ebx
je 0x4a02b6
mov ecx, dword [esp + 0x50]
push ecx
push 0
push ebx
call fcn.004ecd20
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 0x4a028f
mov eax, 0x400
or word [ebx + 2], ax
mov dword [ebx + 4], 0
jmp 0x4a02ab
push esi
lea eax, [ebx + 0x30]
push str.foreign_key_constraint_failed
push eax
mov dword [ebx + 4], eax
call fcn.004ee090
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.004691e0
mov esi, eax
test esi, esi
je 0x4a0301
push 0x40
push 0
push esi
call fcn.004ecd20
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.00498880
add esp, 0xc
cmp byte [edi + 0x1e], 0
mov esi, eax
je 0x4a0305
push esi
mov eax, edi
call fcn.00498ad0
add esp, 4
xor esi, esi
jmp 0x4a033e
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.00495660
mov ecx, dword [esp + 0x4c]
add esp, 4
mov dword [ecx + 4], eax
push edi
xor eax, eax
call fcn.00495660
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.0048cee0
push esi
mov ecx, eax
call fcn.004a8060
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.004691e0
mov ebx, eax
mov dword [esp + 0x2c], ebx
test ebx, ebx
je 0x4a03b5
mov eax, dword [esp + 0x24]
add eax, 0x4d
push eax
push 0
push ebx
call fcn.004ecd20
add esp, 0xc
mov dword [esp + 0x50], ebx
test ebx, ebx
je 0x4a04c5
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.004ee090
mov eax, dword [esp + 0x28]
add esp, 0xc
push 0
push 1
push eax
push edi
call fcn.0048c680
mov ecx, dword [esp + 0x38]
push 1
push ecx
push edi
mov dword [esi + 0x14], eax
call fcn.0048c900
mov edx, dword [esp + 0x3c]
add esp, 0x1c
push 1
push edx
push edi
mov dword [esi + 0x18], eax
call fcn.0048cdc0
add esp, 0xc
cmp dword [esp + 0x18], 0
mov dword [esi + 8], eax
je 0x4a04c5
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov ecx, 0x30
call fcn.004691e0
mov esi, eax
test esi, esi
je 0x4a045d
push 0x30
push 0
push esi
call fcn.004ecd20
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 0x4a0487
mov ecx, dword [esp + 0x18]
push ecx
mov edx, eax
push edx
call fcn.0048c500
mov eax, dword [esp + 0x50]
push esi
push eax
call fcn.0048c500
add esp, 0x10
jmp 0x4a04b0
mov eax, dword [esp + 0x18]
mov ecx, 0x100
mov dword [esi + 8], eax
test word [eax + 2], cx
je 0x4a04a5
mov edx, ecx
or word [esi + 2], dx
mov eax, dword [eax + 0x14]
mov dword [esi + 0x14], eax
mov ebx, esi
call fcn.0048bf80
mov ebx, dword [esp + 0x2c]
push 0
push 1
push esi
push edi
mov dword [esp + 0x28], esi
call fcn.0048c680
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.0048c500
mov eax, dword [esp + 0x20]
push eax
push edi
call fcn.0048c500
mov ebx, dword [esp + 0x38]
add esp, 0x10
mov esi, edi
call fcn.0048d0f0
cmp dword [esp + 0x20], 0
je 0x4a053c
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
mov eax, esi
call fcn.004a8000
mov eax, edi
cmp eax, dword [esi + 0xf0]
jb 0x4a0531
cmp eax, dword [esi + 0xf4]
jae 0x4a0531
mov ecx, dword [esi + 0xec]
mov dword [eax], ecx
dec dword [esi + 0xe4]
mov dword [esi + 0xec], eax
jmp 0x4a053a
push eax
call fcn.00468f60
add esp, 4
mov edi, esi
cmp byte [edi + 0x1e], 1
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
jne 0x4a055e
mov edi, eax
mov eax, dword [esp + 0x14]
call fcn.0049f090
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x3c]
cmp edx, 6
je 0x4a057c
cmp edx, 9
jne 0x4a0577
cmp dword [ebp + 0x14], 0
jne 0x4a0577
mov byte [ecx], 0x6a
jmp 0x4a057f
mov byte [ecx], 0x6b
jmp 0x4a057f
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