Function at 0x4a2e70
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 0x4a390d
cmp eax, ebx
jne 0x4a390d
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.004a10a0
add esp, 0x10
test eax, eax
jne 0x4a38b5
xor ecx, ecx
mov dword [esp + 0x38], ecx
cmp dword [esi + 0x14], ebx
jle 0x4a350a
mov eax, 3
mov dword [esp + 0x60], 0x5983b0
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], 0x5983ac
mov dword [esp + 0x6c], eax
mov edi, esi
jmp 0x4a2f26
mov ecx, dword [esp + 0x38]
mov edi, edx
mov eax, dword [esp + 0x24]
mov esi, dword [ebp + 8]
test eax, eax
je 0x4a2f36
mov edx, dword [eax + ecx*4]
jmp 0x4a2f39
mov edx, dword [edi + 0x24]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4a2f55
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 0x4a2f5a
mov ecx, 0x5997f0
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 0x4a2f8f
cmp byte [ecx], 0
je 0x4a2f88
inc eax
cmp byte [eax], 0
jne 0x4a2f82
sub eax, ecx
and eax, 0x3fffffff
mov dword [esp + 0x5c], eax
mov eax, edx
test edx, edx
jne 0x4a2f9f
mov dword [esp + 0x34], edx
jmp 0x4a2fb5
cmp byte [edx], 0
je 0x4a2faa
inc eax
cmp byte [eax], 0
jne 0x4a2fa4
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.0048f3d0
mov edi, dword [esi]
add esp, 0xc
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x4a2fee
push eax
push edi
call fcn.0048f870
push 0
push edi
call fcn.0048f870
add esp, 0x10
jmp 0x4a2ff5
mov ebx, eax
call fcn.0048f2f0
mov edx, dword [esi]
push 1
push 0x1a
push edx
lea eax, [esp + 0x64]
call fcn.0048f3d0
mov edi, dword [esi]
add esp, 0xc
mov dword [esp + 0x48], eax
test eax, eax
jne 0x4a3026
push eax
push edi
call fcn.0048f870
push 0
push edi
call fcn.0048f870
add esp, 0x10
jmp 0x4a302d
mov ebx, eax
call fcn.0048f2f0
mov eax, dword [esi]
push 1
push 0x1a
push eax
lea eax, [esp + 0x6c]
call fcn.0048f3d0
mov edi, dword [esi]
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4a305b
push eax
push edi
call fcn.0048f870
push ebx
push edi
call fcn.0048f870
add esp, 0x10
jmp 0x4a3060
call fcn.0048f2f0
mov esi, dword [esi]
mov ecx, 0x30
call fcn.0046c560
mov esi, eax
mov dword [esp + 0x44], esi
test esi, esi
je 0x4a3094
push 0x30
push 0
push esi
call fcn.00530110
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.0048f520
mov ebx, dword [ebp + 8]
mov esi, dword [ebx]
mov ecx, 0x30
call fcn.0046c560
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4a30df
push 0x30
mov esi, eax
push 0
push esi
call fcn.00530110
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.0048f520
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push ecx
push edx
call fcn.0048f5b0
add esp, 8
cmp dword [ebp + 0x14], 0
mov dword [esp + 0x1c], eax
je 0x4a32e7
mov eax, dword [ebx]
push 1
push 0x1a
push eax
lea eax, [esp + 0x64]
call fcn.0048f3d0
mov esi, dword [ebx]
add esp, 0xc
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x4a3147
push eax
push esi
call fcn.0048f870
push 0
push esi
call fcn.0048f870
add esp, 0x10
jmp 0x4a3151
mov ebx, eax
call fcn.0048f2f0
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
push 1
push 0x1a
push ecx
lea eax, [esp + 0x74]
call fcn.0048f3d0
mov esi, dword [ebx]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4a317f
push eax
push esi
call fcn.0048f870
push edi
push esi
call fcn.0048f870
add esp, 0x10
jmp 0x4a3189
mov ebx, edi
call fcn.0048f2f0
mov ebx, dword [ebp + 8]
mov esi, dword [ebx]
mov ecx, 0x30
call fcn.0046c560
mov esi, eax
mov dword [esp + 0x44], esi
test esi, esi
je 0x4a31bd
push 0x30
push 0
push esi
call fcn.00530110
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.0048f520
mov eax, dword [ebx]
push 1
push 0x1a
push eax
lea eax, [esp + 0x64]
call fcn.0048f3d0
mov esi, dword [ebx]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4a31fc
push eax
push esi
call fcn.0048f870
push edi
push esi
call fcn.0048f870
add esp, 0x10
jmp 0x4a3206
mov ebx, edi
call fcn.0048f2f0
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
push 1
push 0x1a
push ecx
lea eax, [esp + 0x6c]
call fcn.0048f3d0
mov esi, dword [ebx]
add esp, 0xc
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x4a3237
push eax
push esi
call fcn.0048f870
push 0
push esi
call fcn.0048f870
add esp, 0x10
jmp 0x4a3241
mov ebx, eax
call fcn.0048f2f0
mov ebx, dword [ebp + 8]
mov esi, dword [ebx]
mov ecx, 0x30
call fcn.0046c560
mov esi, eax
mov dword [esp + 0x48], esi
test esi, esi
je 0x4a3275
push 0x30
push 0
push esi
call fcn.00530110
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.0048f520
mov esi, dword [ebx]
mov ecx, 0x30
call fcn.0046c560
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4a32ba
push 0x30
mov esi, eax
push 0
push esi
call fcn.00530110
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.0048f520
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ecx
push edx
call fcn.0048f5b0
add esp, 8
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
cmp eax, 6
je 0x4a34f1
cmp eax, 9
jne 0x4a33c8
cmp dword [ebp + 0x14], 0
je 0x4a34f1
mov eax, dword [ebx]
push 1
push 0x1a
push eax
lea eax, [esp + 0x64]
call fcn.0048f3d0
mov esi, dword [ebx]
add esp, 0xc
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x4a3338
push eax
push esi
call fcn.0048f870
push 0
push esi
call fcn.0048f870
add esp, 0x10
jmp 0x4a3342
mov ebx, eax
call fcn.0048f2f0
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
push 1
push 0x1a
push ecx
lea eax, [esp + 0x74]
call fcn.0048f3d0
mov esi, dword [ebx]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4a3370
push eax
push esi
call fcn.0048f870
push edi
push esi
call fcn.0048f870
add esp, 0x10
jmp 0x4a337a
mov ebx, edi
call fcn.0048f2f0
mov ebx, dword [ebp + 8]
mov esi, dword [ebx]
mov ecx, 0x30
call fcn.0046c560
mov esi, eax
mov dword [esp + 0x48], esi
test esi, esi
je 0x4a33ae
push 0x30
push 0
push esi
call fcn.00530110
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.0048f520
mov eax, dword [esp + 0x48]
jmp 0x4a3496
cmp eax, 8
jne 0x4a3441
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 0x4a33f8
mov ecx, dword [esp + 0x14]
push 0
push 0
push eax
push ecx
call fcn.0048f9f0
add esp, 0x10
jmp 0x4a3496
mov esi, dword [ebx]
mov ecx, 0x30
call fcn.0046c560
mov esi, eax
test esi, esi
je 0x4a3428
push 0x30
push 0
push esi
call fcn.00530110
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 0x4a348a
push esi
push edi
call fcn.0048f870
push esi
push edi
call fcn.0048f870
add esp, 0x10
jmp 0x4a3494
mov esi, dword [ebx]
mov ecx, 0x30
call fcn.0046c560
mov esi, eax
test esi, esi
je 0x4a3471
push 0x30
push 0
push esi
call fcn.00530110
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 0x4a348a
push esi
push edi
call fcn.0048f870
push esi
push edi
call fcn.0048f870
add esp, 0x10
jmp 0x4a3494
mov ebx, esi
call fcn.0048f2f0
mov ebx, dword [ebp + 8]
mov eax, esi
mov ecx, dword [esp + 0x28]
mov edi, eax
mov eax, ebx
call fcn.00490250
mov dword [esp + 0x28], eax
test eax, eax
je 0x4a34f1
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 0x4a34c9
xor esi, esi
jmp 0x4a34ea
mov ebx, dword [esp + 0x34]
lea ecx, [ebx + 1]
call fcn.0046c560
mov esi, eax
test esi, esi
je 0x4a34ea
push ebx
push edi
push esi
call fcn.00530190
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 0x4a2f20
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
test edi, edi
je 0x4a353c
test eax, eax
je 0x4a353c
cmp eax, dword [edi + 0xf0]
jb 0x4a353c
cmp eax, dword [edi + 0xf4]
jae 0x4a353c
mov ecx, dword [edi + 0xec]
mov dword [eax], ecx
dec dword [edi + 0xe4]
mov dword [edi + 0xec], eax
jmp 0x4a3545
push eax
call fcn.0046c2e0
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 0x4a356d
cmp byte [ecx], 0
je 0x4a3566
lea esp, [esp]
inc eax
cmp byte [eax], 0
jne 0x4a3560
sub eax, ecx
and eax, 0x3fffffff
cmp dword [esp + 0x3c], 6
mov dword [esp + 0x24], eax
jne 0x4a36d9
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 0x4a3590
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.0046c560
mov ebx, eax
test ebx, ebx
je 0x4a3616
mov ecx, dword [esp + 0x50]
push ecx
push 0
push ebx
call fcn.00530110
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 0x4a35ef
mov eax, 0x400
or word [ebx + 2], ax
mov dword [ebx + 4], 0
jmp 0x4a360b
push esi
lea eax, [ebx + 0x30]
push str.foreign_key_constraint_failed
push eax
mov dword [ebx + 4], eax
call fcn.00530190
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.0046c560
mov esi, eax
test esi, esi
je 0x4a3661
push 0x40
push 0
push esi
call fcn.00530110
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.0049bbe0
add esp, 0xc
cmp byte [edi + 0x1e], 0
mov esi, eax
je 0x4a3665
push esi
mov eax, edi
call fcn.0049be30
add esp, 4
xor esi, esi
jmp 0x4a369e
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.004989d0
mov ecx, dword [esp + 0x4c]
add esp, 4
mov dword [ecx + 4], eax
push edi
xor eax, eax
call fcn.004989d0
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.00490250
push esi
mov ecx, eax
call fcn.004ab3c0
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.0046c560
mov ebx, eax
mov dword [esp + 0x2c], ebx
test ebx, ebx
je 0x4a3715
mov eax, dword [esp + 0x24]
add eax, 0x4d
push eax
push 0
push ebx
call fcn.00530110
add esp, 0xc
mov dword [esp + 0x50], ebx
test ebx, ebx
je 0x4a3825
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.00530190
mov eax, dword [esp + 0x28]
add esp, 0xc
push 0
push 1
push eax
push edi
call fcn.0048f9f0
mov ecx, dword [esp + 0x38]
push 1
push ecx
push edi
mov dword [esi + 0x14], eax
call fcn.0048fc70
mov edx, dword [esp + 0x3c]
add esp, 0x1c
push 1
push edx
push edi
mov dword [esi + 0x18], eax
call fcn.00490130
add esp, 0xc
cmp dword [esp + 0x18], 0
mov dword [esi + 8], eax
je 0x4a3825
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov ecx, 0x30
call fcn.0046c560
mov esi, eax
test esi, esi
je 0x4a37bd
push 0x30
push 0
push esi
call fcn.00530110
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 0x4a37e7
mov ecx, dword [esp + 0x18]
push ecx
mov edx, eax
push edx
call fcn.0048f870
mov eax, dword [esp + 0x50]
push esi
push eax
call fcn.0048f870
add esp, 0x10
jmp 0x4a3810
mov eax, dword [esp + 0x18]
mov ecx, pe_nt_image_headers32
mov dword [esi + 8], eax
test word [eax + 2], cx
je 0x4a3805
mov edx, ecx
or word [esi + 2], dx
mov eax, dword [eax + 0x14]
mov dword [esi + 0x14], eax
mov ebx, esi
call fcn.0048f2f0
mov ebx, dword [esp + 0x2c]
push 0
push 1
push esi
push edi
mov dword [esp + 0x28], esi
call fcn.0048f9f0
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.0048f870
mov eax, dword [esp + 0x20]
push eax
push edi
call fcn.0048f870
mov ebx, dword [esp + 0x38]
add esp, 0x10
mov esi, edi
call fcn.00490460
cmp dword [esp + 0x20], 0
je 0x4a389c
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
mov eax, esi
call fcn.004ab360
mov eax, edi
cmp eax, dword [esi + 0xf0]
jb 0x4a3891
cmp eax, dword [esi + 0xf4]
jae 0x4a3891
mov ecx, dword [esi + 0xec]
mov dword [eax], ecx
dec dword [esi + 0xe4]
mov dword [esi + 0xec], eax
jmp 0x4a389a
push eax
call fcn.0046c2e0
add esp, 4
mov edi, esi
cmp byte [edi + 0x1e], 1
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
jne 0x4a38be
mov edi, eax
mov eax, dword [esp + 0x14]
call fcn.004a23f0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x3c]
cmp edx, 6
je 0x4a38dc
cmp edx, 9
jne 0x4a38d7
cmp dword [ebp + 0x14], 0
jne 0x4a38d7
mov byte [ecx], 0x6a
jmp 0x4a38df
mov byte [ecx], 0x6b
jmp 0x4a38df
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