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

Disassembly:
sub esp, 0x4c
xor ecx, ecx
push esi
mov esi, eax
mov eax, dword [esp + 0x54]
mov eax, dword [eax]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], ecx
cmp byte [eax + 0x49], cl
jne 0x50742e
mov ecx, dword [esp + 0x54]
cmp dword [ecx + 0x24], 0
jg 0x50742e
mov edx, ecx
cmp byte [edx + 0xc4], 1
jne 0x506d93
cmp byte [esp + 0x78], 2
jne 0x50742e
mov eax, ecx
push eax
call fcn.00528960
add esp, 4
test eax, eax
jne 0x50742e
push ebx
push ebp
push edi
cmp dword [esp + 0x68], eax
je 0x506e90
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
push ecx
push edx
lea ecx, [esp + 0x34]
mov eax, esi
call fcn.004d8080
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
jl 0x50742b
mov ebx, dword [esp + 0x10]
cmp byte [ebx + 0x9d], 0
mov ebp, dword [esp + 0x68]
mov edi, dword [esp + 0x60]
jne 0x506e12
mov ecx, ebp
mov eax, edi
call fcn.004ef710
cmp dword [esi + 4], 0
jne 0x506e12
test eax, eax
je 0x506e12
mov ecx, dword [ebx + 0x10]
mov edx, dword [eax + 0x48]
cmp edx, dword [ecx + 0x1c]
jne 0x506e12
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
push eax
push str.index
mov ecx, edi
lea eax, [esp + 0x4c]
call fcn.004b6e50
mov ecx, eax
push ebp
push ecx
call fcn.004fa480
add ebp, 8
push ebp
push 0
call fcn.004c2060
add esp, 0x18
mov dword [esp + 0x14], eax
test eax, eax
je 0x50742b
mov edx, esi
mov edi, ebx
mov esi, eax
cmp edx, 1
jne 0x506e7d
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x1c]
cmp ecx, dword [esi + 0x48]
je 0x506e7d
mov edx, dword [esi]
mov esi, dword [esp + 0x60]
push edx
push str.cannot_create_a_TEMP_index_on_non_TEMP_table___s_
call fcn.004d3500
add esp, 8
jmp 0x50742b
test byte [esi + 0x24], 0x20
je 0x506ebc
mov eax, esi
call fcn.004b7150
mov dword [esp + 0x30], eax
jmp 0x506ebc
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 0xe0]
mov dword [esp + 0x14], eax
test eax, eax
je 0x50742b
mov edi, dword [esp + 0x10]
mov esi, eax
mov edx, dword [esi + 0x48]
mov ecx, edi
call fcn.004b8580
mov edx, eax
mov dword [esp + 0x1c], edx
mov ebx, dword [edi + 0x10]
mov ebp, dword [esi]
mov eax, edx
shl eax, 4
push 7
add ebx, eax
push 0x5e6ca8
push ebp
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], ebx
call fcn.004ad1c0
add esp, 0xc
test eax, eax
jne 0x506f1a
cmp byte [edi + 0x9d], al
jne 0x506f1a
push 9
lea ecx, [ebp + 7]
push str.altertab_
push ecx
call fcn.004ad1c0
add esp, 0xc
test eax, eax
je 0x506f1a
mov esi, dword [esp + 0x60]
push ebp
push str.table__s_may_not_be_indexed
call fcn.004d3500
add esp, 8
jmp 0x50742b
cmp dword [esi + 0xc], 0
je 0x506f36
mov esi, dword [esp + 0x60]
push str.views_may_not_be_indexed
call fcn.004d3500
add esp, 4
jmp 0x50742b
cmp dword [esi + 0x38], 0
je 0x506f52
mov esi, dword [esp + 0x60]
push str.virtual_tables_may_not_be_indexed
call fcn.004d3500
add esp, 4
jmp 0x50742b
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x50700b
push edi
call fcn.004c20c0
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x50742b
mov edi, eax
mov eax, dword [esp + 0x60]
call fcn.004d80e0
test eax, eax
jne 0x50742b
mov esi, dword [esp + 0x60]
cmp byte [esi + 0xc4], 2
jae 0x5070b4
mov edi, dword [esp + 0x10]
cmp byte [edi + 0x9d], al
jne 0x506fc9
mov ebp, dword [esp + 0x18]
push eax
push ebp
push edi
call fcn.004c1f20
add esp, 0xc
test eax, eax
je 0x506fc9
push ebp
push str.there_is_already_a_table_named__s
call fcn.004d3500
add esp, 8
jmp 0x50742b
mov edx, dword [ebx]
mov ebp, dword [esp + 0x18]
push edx
push ebp
push edi
call fcn.004b6f70
add esp, 0xc
test eax, eax
je 0x50704a
cmp dword [esp + 0x80], 0
jne 0x506ffb
push ebp
push str.index__s_already_exists
call fcn.004d3500
add esp, 8
jmp 0x50742b
mov ecx, dword [esp + 0x1c]
mov edx, esi
call fcn.005025f0
jmp 0x50742b
mov eax, dword [esi + 8]
mov ecx, 1
test eax, eax
je 0x50701f
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x507017
push ecx
push ebp
push str.sqlite_autoindex__s__d
call fcn.004d31d0
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
je 0x50742b
mov esi, dword [esp + 0x60]
cmp byte [esi + 0xc4], 0
je 0x50704a
inc byte [eax + 7]
cmp byte [esi + 0xc4], 2
jae 0x5070b4
cmp dword [esp + 0x1c], 1
mov edi, dword [ebx]
mov eax, str.sqlite_temp_master
je 0x507066
mov eax, str.sqlite_master
push edi
push 0
push eax
push 0x12
mov eax, esi
call fcn.004d7e50
add esp, 0x10
test eax, eax
jne 0x50742b
mov eax, 1
cmp dword [esp + 0x1c], eax
jne 0x50708e
mov eax, 3
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x18]
push edi
push edx
push ecx
push eax
mov eax, dword [esp + 0x70]
call fcn.004d7e50
add esp, 0x10
test eax, eax
jne 0x50742b
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x6c]
test edi, edi
jne 0x50711b
mov eax, dword [esp + 0x14]
movsx edx, word [eax + 0x2a]
mov eax, dword [eax + 4]
shl edx, 4
or byte [edx + eax - 1], 8
lea eax, [edx + eax - 0x10]
mov eax, dword [eax]
lea edx, [esp + 0x3c]
call fcn.004ad140
mov ecx, dword [esp + 0x10]
push edi
push 0x3b
push ecx
mov eax, edx
call fcn.004c16c0
push eax
xor ecx, ecx
mov eax, esi
call fcn.004cc7f0
add esp, 0x10
mov dword [esp + 0x6c], eax
test eax, eax
je 0x50742b
mov ecx, dword [esp + 0x7c]
mov edi, eax
test ecx, ecx
jl 0x50712c
mov eax, dword [edi]
lea edx, [eax + eax*2]
mov byte [edi + edx*8 - 8], cl
jmp 0x50712c
push str.index
mov eax, edi
mov ecx, esi
call fcn.004d68a0
add esp, 4
mov eax, dword [edi]
test eax, eax
jle 0x50715f
mov ebx, dword [esp + 0x28]
lea esi, [edi + 4]
mov ebp, eax
jmp 0x507140
mov eax, dword [esi]
cmp byte [eax], 0x66
jne 0x507153
mov eax, dword [eax + 8]
call fcn.004ad060
lea ebx, [ebx + eax + 1]
add esi, 0x18
sub ebp, 1
jne 0x507140
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x18]
call fcn.004ad060
mov esi, eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x507178
movzx eax, word [eax + 0x32]
jmp 0x50717d
mov eax, 1
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x20]
push ecx
mov cx, word [edi]
mov edi, dword [esp + 0x14]
add cx, ax
movzx eax, cx
lea edx, [esi + edx + 1]
push eax
mov ecx, edi
call fcn.004ccc90
add esp, 8
cmp byte [edi + 0x49], 0
mov ebp, eax
jne 0x50741c
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
lea ecx, [eax + esi + 1]
inc esi
push esi
push edx
push eax
mov dword [ebp], eax
mov dword [esp + 0x2c], ecx
call fcn.00588f30
mov eax, dword [esp + 0x7c]
movzx edx, byte [esp + 0x90]
xor ecx, ecx
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x78]
add esp, 0xc
test eax, eax
setne cl
mov byte [ebp + 0x36], al
mov eax, dword [ebp + 0x38]
and edx, 3
and eax, 0xfffffff4
mov dword [ebp + 0xc], esi
and ecx, 1
add ecx, ecx
add ecx, ecx
add ecx, ecx
or ecx, edx
or ecx, eax
mov eax, dword [esp + 0x34]
mov dword [ebp + 0x38], ecx
mov ecx, edi
mov edx, dword [ecx + 0x10]
mov ecx, dword [edx + eax + 0xc]
mov edi, dword [esp + 0x78]
mov dword [ebp + 0x18], ecx
mov dx, word [ebx]
mov word [ebp + 0x32], dx
test edi, edi
je 0x507243
mov eax, dword [esp + 0x60]
push 0
push edi
push 2
push eax
call fcn.004ee0d0
add esp, 0x10
mov dword [ebp + 0x24], edi
mov dword [esp + 0x78], 0
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0xc]
cmp byte [edx + 0x4c], 4
mov ecx, dword [esp + 0x60]
sbb eax, eax
neg eax
dec eax
cmp byte [ecx + 0xc4], 2
mov dword [esp + 0x38], eax
lea eax, [ebx + 4]
mov dword [esp + 0x28], eax
jb 0x507276
mov dword [ebp + 0x28], ebx
mov dword [esp + 0x6c], 0
xor edx, edx
xor ebx, ebx
cmp dx, word [ebp + 0x32]
jae 0x5073bf
mov edx, dword [esp + 0x28]
mov ecx, dword [edx]
call fcn.004b7200
mov eax, dword [edx]
mov edi, dword [esp + 0x60]
mov esi, dword [esp + 0x14]
push 0
push eax
push 0x20
push edi
call fcn.004ee0d0
add esp, 0x10
cmp dword [edi + 0x24], 0
jne 0x50741c
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
call fcn.004b60c0
cmp byte [eax], 0x9e
je 0x5072f6
cmp esi, dword [edi + 0xe0]
je 0x50740d
cmp dword [ebp + 0x28], 0
jne 0x5072e2
mov ecx, dword [esp + 0x6c]
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x6c], 0
mov ecx, dword [ebp + 4]
mov eax, 0xfffffffe
mov edi, eax
mov word [ecx + ebx*2], di
and dword [ebp + 0x38], 0xfffffff7
jmp 0x50731e
movsx eax, word [eax + 0x20]
test eax, eax
jge 0x507304
movsx eax, word [esi + 0x28]
jmp 0x507317
mov edi, dword [esi + 4]
mov ecx, eax
shl ecx, 4
cmp byte [ecx + edi + 0xc], 0
jne 0x507317
and dword [ebp + 0x38], 0xfffffff7
mov ecx, dword [ebp + 4]
mov word [ecx + ebx*2], ax
mov ecx, dword [edx]
cmp byte [ecx], 0x66
jne 0x50734d
mov edi, dword [ecx + 8]
mov eax, edi
call fcn.004ad060
mov esi, eax
inc esi
push esi
push edi
mov edi, dword [esp + 0x28]
push edi
call fcn.00588f30
add esp, 0xc
mov dword [esp + 0x24], edi
add edi, esi
mov dword [esp + 0x20], edi
jmp 0x50735f
test eax, eax
jl 0x507366
mov edx, dword [esi + 4]
shl eax, 4
mov eax, dword [eax + edx + 8]
mov dword [esp + 0x24], eax
cmp dword [esp + 0x24], 0
jne 0x50736e
mov dword [esp + 0x24], 0x5eb570
mov ecx, dword [esp + 0x10]
cmp byte [ecx + 0x9d], 0
jne 0x507390
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x60]
call fcn.004ef5c0
test eax, eax
je 0x50741c
mov edx, dword [ebp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [edx + ebx*4], eax
mov eax, dword [esp + 0x28]
mov cl, byte [eax + 0xc]
and cl, byte [esp + 0x38]
mov edx, dword [ebp + 0x1c]
add eax, 0x18
mov byte [ebx + edx], cl
mov dword [esp + 0x28], eax
movzx eax, word [ebp + 0x32]
inc ebx
cmp ebx, eax
jl 0x507284
mov edi, dword [esp + 0x30]
test edi, edi
je 0x5074b9
xor ecx, ecx
xor esi, esi
cmp cx, word [edi + 0x32]
jae 0x5074cd
lea esp, [esp]
mov edx, dword [edi + 4]
mov ecx, dword [ebp + 4]
movsx edx, word [edx + esi*2]
movzx eax, word [ebp + 0x32]
push ecx
call fcn.004b7320
add esp, 4
test eax, eax
je 0x50748a
mov eax, 0xffff
add word [ebp + 0x34], ax
jmp 0x5074aa
push str.expressions_prohibited_in_PRIMARY_KEY_and_UNIQUE_constraints
mov esi, edi
call fcn.004d3500
add esp, 4
test ebp, ebp
je 0x50742b
mov esi, dword [esp + 0x10]
mov edi, ebp
call fcn.004c7750
pop edi
pop ebp
pop ebx
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 4]
test eax, eax
je 0x507444
push eax
push esi
call fcn.004c6c60
add esp, 8
mov eax, dword [esp + 0x60]
test eax, eax
je 0x507456
push eax
push esi
call fcn.004c7020
add esp, 8
mov eax, dword [esp + 0x5c]
push eax
mov eax, esi
call fcn.004b7690
mov eax, dword [esp + 0x10]
add esp, 4
test eax, eax
je 0x5078c0
cmp dword [esi + 0x1d8], 0
je 0x507894
mov ecx, esi
call fcn.004acbd0
pop esi
add esp, 0x4c
ret
mov eax, dword [ebp + 4]
mov word [eax + ebx*2], dx
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx + esi*4]
mov edx, dword [ebp + 0x20]
mov dword [edx + ebx*4], eax
mov ecx, dword [edi + 0x1c]
mov edx, dword [ebp + 0x1c]
mov al, byte [esi + ecx]
mov byte [ebx + edx], al
inc ebx
movzx ecx, word [edi + 0x32]
inc esi
cmp esi, ecx
jl 0x5073e0
jmp 0x5074cd
mov edx, dword [ebp + 4]
or eax, 0xffffffff
mov word [edx + ebx*2], ax
mov ecx, dword [ebp + 0x20]
mov dword [ecx + ebx*4], 0x5eb570
mov esi, ebp
call fcn.004b7420
mov edx, dword [esp + 0x60]
cmp dword [edx + 0xe0], 0
jne 0x5074e8
mov edi, ebp
call fcn.004b72c0
mov ebx, dword [esp + 0x14]
push ebp
call fcn.004b7350
add esp, 4
cmp dword [esp + 0x68], 0
je 0x507545
movzx eax, word [ebp + 0x34]
movsx ecx, word [ebx + 0x2a]
cmp eax, ecx
jl 0x507545
or dword [ebp + 0x38], 0x20
mov edi, dword [ebp + 0x38]
xor edx, edx
xor esi, esi
cmp dx, word [ebx + 0x2a]
jge 0x507545
lea esp, [esp]
movsx eax, word [ebx + 0x28]
cmp esi, eax
je 0x507534
mov edx, ebp
call fcn.004b7170
test ax, ax
jl 0x50753f
movsx eax, word [ebx + 0x2a]
inc esi
cmp esi, eax
jl 0x507520
jmp 0x507545
and edi, 0xffffffdf
mov dword [ebp + 0x38], edi
mov ecx, dword [esp + 0x60]
cmp ebx, dword [ecx + 0xe0]
jne 0x5075cb
mov edx, dword [esp + 0x14]
mov ebx, dword [edx + 8]
test ebx, ebx
je 0x5075cb
lea esp, [esp]
movzx eax, word [ebx + 0x32]
movzx ecx, word [ebp + 0x32]
cmp ax, cx
jne 0x5075c4
movzx eax, ax
xor esi, esi
mov dword [esp + 0x30], eax
test eax, eax
jle 0x5075be
mov edi, dword [ebp + 4]
mov eax, dword [ebx + 4]
sub eax, edi
mov dword [esp + 0x38], eax
jmp 0x507594
mov eax, dword [esp + 0x38]
mov ax, word [eax + edi]
cmp ax, word [edi]
jne 0x5075be
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebx + 0x20]
mov eax, dword [ecx + esi*4]
mov ecx, dword [edx + esi*4]
call fcn.004ad170
test eax, eax
jne 0x5075be
movzx eax, word [ebx + 0x32]
inc esi
add edi, 2
cmp esi, eax
jl 0x507590
cmp esi, dword [esp + 0x30]
je 0x50763e
mov ebx, dword [ebx + 0x14]
test ebx, ebx
jne 0x507560
mov ebx, dword [esp + 0x60]
cmp byte [ebx + 0xc4], 2
mov esi, dword [esp + 0x10]
jae 0x50781f
cmp byte [esi + 0x9d], 0
je 0x5076ac
mov eax, dword [ebp]
push ebp
push eax
mov eax, dword [ebp + 0x18]
add eax, 0x18
call fcn.004bc860
add esp, 8
test eax, eax
je 0x50768f
cmp byte [esi + 0x49], 0
jne 0x50741c
cmp byte [esi + 0x4a], 0
jne 0x50741c
cmp dword [esi + 0xb0], 0
mov byte [esi + 0x49], 1
jle 0x507633
mov dword [esi + 0x100], 1
inc dword [esi + 0x108]
jmp 0x50741c
mov al, byte [ebx + 0x36]
mov cl, byte [ebp + 0x36]
cmp al, cl
je 0x507670
cmp al, 0xb
je 0x507664
cmp cl, 0xb
je 0x507664
mov esi, dword [esp + 0x60]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
call fcn.004d3500
add esp, 8
cmp byte [ebx + 0x36], 0xb
jne 0x507670
mov cl, byte [ebp + 0x36]
mov byte [ebx + 0x36], cl
cmp byte [esp + 0x84], 2
jne 0x50741c
mov edx, dword [ebx + 0x38]
and edx, 0xfffffffe
or edx, 2
mov dword [ebx + 0x38], edx
jmp 0x50741c
or dword [esi + 0x18], 1
cmp dword [esp + 0x68], 0
je 0x50781f
mov ecx, dword [esi + 0x98]
mov dword [ebp + 0x2c], ecx
jmp 0x50781f
mov edx, dword [esp + 0x14]
test byte [edx + 0x24], 0x20
je 0x5076c1
cmp dword [esp + 0x68], 0
je 0x50781f
inc dword [ebx + 0x2c]
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x30], eax
test esi, esi
jne 0x5076f6
cmp dword [ebx + 0x74], esi
jne 0x5076e3
mov ecx, dword [ebx]
test byte [ecx + 0x44], 8
jne 0x5076e3
mov byte [ebx + 0x17], 1
push ebx
call fcn.004cbd70
mov esi, eax
add esp, 4
test esi, esi
je 0x50741c
mov edi, dword [esp + 0x1c]
push 1
mov ecx, edi
mov edx, ebx
call fcn.00502690
push 0
push 0
push 0
push 0xab
push esi
call fcn.004c5720
mov edx, dword [esp + 0x48]
push 2
push edx
push edi
push 0x8c
push esi
mov dword [ebp + 0x2c], eax
call fcn.004c5720
add esp, 0x2c
cmp dword [esp + 0x74], 0
je 0x50777b
mov eax, dword [ebx + 0xbc]
add eax, dword [ebx + 0xb8]
mov ecx, dword [esp + 0x2c]
sub eax, dword [ecx]
mov ecx, dword [ecx]
cmp byte [ecx + eax - 1], 0x3b
jne 0x507752
dec eax
cmp dword [esp + 0x70], 0
mov edx, 0x5d3001
je 0x507763
mov edx, str._UNIQUE
mov edi, dword [esp + 0x10]
push ecx
push eax
push edx
push str.CREATE_s_INDEX__.s
call fcn.004d31d0
add esp, 0x10
mov ebx, eax
jmp 0x507781
mov edi, dword [esp + 0x10]
xor ebx, ebx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [edi + 0x10]
push ebx
push eax
mov eax, dword [ebp]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [ecx + edx]
mov ecx, dword [esp + 0x70]
push str.sqlite_master
push eax
push str.INSERT_INTO__Q._s_VALUES_index__Q__Q__d__Q__
push ecx
call fcn.004d7ee0
add esp, 0x20
mov eax, ebx
mov ecx, edi
call fcn.004acc50
cmp dword [esp + 0x68], 0
je 0x50780d
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x60]
push edx
push ebp
call fcn.005020d0
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x68]
mov eax, ebx
call fcn.004c7a10
mov eax, dword [ebp]
push eax
push str.name_q_AND_typeindex
call fcn.004d31d0
mov ecx, eax
mov eax, ebx
call fcn.004c58a0
push 0
push 1
push 0
push 0x9f
push esi
call fcn.004c5720
add esp, 0x24
mov eax, dword [ebp + 0x2c]
mov edx, esi
call fcn.004bff30
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x60]
cmp byte [esi + 0x9d], 0
jne 0x507847
cmp dword [esp + 0x68], 0
je 0x507847
cmp byte [ebx + 0xc4], 2
jb 0x50741c
mov dword [ebx + 0xe4], ebp
jmp 0x50742b
mov ecx, dword [esp + 0x14]
mov edx, 5
cmp dword [esp + 0x70], edx
jne 0x507886
mov eax, dword [ecx + 8]
test eax, eax
je 0x507886
cmp byte [eax + 0x36], dl
je 0x507886
cmp dword [eax + 0x14], 0
je 0x507878
mov ecx, dword [eax + 0x14]
cmp byte [ecx + 0x36], dl
je 0x507878
mov eax, ecx
cmp dword [eax + 0x14], 0
jne 0x507868
mov ecx, dword [eax + 0x14]
mov dword [ebp + 0x14], ecx
mov dword [eax + 0x14], ebp
jmp 0x50742b
mov edx, dword [ecx + 8]
mov dword [ebp + 0x14], edx
mov dword [ecx + 8], ebp
jmp 0x50742b
cmp eax, dword [esi + 0x128]
jb 0x5078b7
cmp eax, dword [esi + 0x12c]
jae 0x5078b7
mov ecx, dword [esi + 0x124]
mov dword [eax], ecx
mov dword [esi + 0x124], eax
pop esi
add esp, 0x4c
ret
push eax
call fcn.004acb60
add esp, 4
pop esi
add esp, 0x4c
ret