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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], 0
mov ebx, edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0xc], 0
mov esi, dword [edi + 8]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0
test esi, esi
je 0x4b5f43
mov ecx, 0x72
test ebx, ebx
je 0x4b53de
movzx ecx, byte [ebx]
lea eax, [ecx - 0x13]
mov dword [esp + 0x20], ecx
cmp eax, 0x9a
ja case.0x4b53f7.21
movzx eax, byte [eax + 0x4b61e0]
jmp dword [eax*4 + 0x4b6168]
mov ebx, dword [ebx + 0xc]
mov dword [esp + 0x28], ebx
jmp 0x4b53d2
movsx eax, word [ebx + 0x22]
mov edx, dword [ebx + 0x28]
lea ecx, [eax + eax*2]
cmp byte [edx], 0
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*8]
jne 0x4b5426
mov eax, dword [eax + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [edx + 1], 0
je case.0x4b53f7.162
mov ebx, dword [ebp + 8]
mov ecx, esi
push ebx
push dword [eax + 0xc]
push dword [edx + 8]
mov edx, 0x5a
call fcn.0049bf80
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test byte [ebx + 4], 8
mov ecx, dword [ebx + 0x1c]
je 0x4b54dc
mov esi, dword [ebp + 8]
mov ecx, edi
mov edx, dword [ebx + 0xc]
push esi
call fcn.004b5390
movsx edx, word [ebx + 0x20]
add esp, 4
mov ecx, eax
mov dword [esp + 0x18], ecx
test edx, edx
js 0x4b5488
mov eax, dword [ebx + 0x2c]
add edx, edx
mov eax, dword [eax + 4]
mov al, byte [eax + edx*8 + 0xd]
jmp 0x4b548a
mov al, 0x44
movsx ebx, al
cmp ebx, 0x41
je 0x4b54d3
mov edi, dword [esp + 0x14]
cmp ecx, esi
je 0x4b54b1
push esi
push ecx
mov edx, 0x4f
mov ecx, edi
call fcn.0049c0b0
mov ecx, esi
add esp, 8
mov dword [esp + 0x18], ecx
push 0xffffffffffffffff
lea eax, [ebx*2 + 0x61a36c]
mov edx, 0x5b
push eax
push 0
push 1
push ecx
mov ecx, edi
call fcn.0049c340
mov ecx, dword [esp + 0x2c]
add esp, 0x14
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ecx, ecx
jns 0x4b54f5
mov ecx, dword [edi + 0x34]
test ecx, ecx
jns 0x4b54f4
movsx eax, word [ebx + 0x20]
sub eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
mov al, byte [ebx + 0x26]
push dword [ebp + 8]
mov edx, dword [ebx + 0x2c]
mov byte [esp + 0x2b], al
movsx eax, word [ebx + 0x20]
push eax
push ecx
mov ecx, esi
call fcn.004b5050
mov cl, byte [esp + 0x33]
add esp, 0xc
test cl, cl
je 0x4b615d
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x4b615d
movzx edx, cl
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov edx, ebx
push esi
push 0
mov ecx, edi
call fcn.004b4ed0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov ecx, ebx
push esi
call fcn.004b26e0
mov ecx, dword [esp + 0x18]
mov edx, 0x46
push eax
call fcn.0049c0b0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov edx, dword [ebx + 8]
mov ecx, dword [esp + 0x14]
push esi
push 0
call fcn.004b4e20
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebx + 8]
mov edx, dword [ebp + 8]
mov ecx, esi
call fcn.0049c190
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
mov edx, 0x49
push ebx
push 0
mov ecx, esi
call fcn.0049c0b0
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebx + 8]
lea ecx, [esi + 2]
call fcn.00480060
lea edx, [esi + 2]
mov esi, dword [esp + 0x14]
lea edi, [eax - 1]
mov ecx, dword [esi]
push edi
call fcn.004812b0
mov ebx, dword [ebp + 8]
add esp, 4
mov ecx, esi
push 0xfffffffffffffff9
push eax
mov eax, edi
cdq
sub eax, edx
mov edx, 0x4b
push 0
sar eax, 1
push ebx
push eax
call fcn.0049c340
add esp, 0x14
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
movsx eax, word [ebx + 0x20]
mov edx, 0x4c
push eax
mov ecx, esi
call fcn.0049c0b0
mov eax, dword [ebx + 8]
add esp, 8
cmp byte [eax + 1], 0
je 0x4b615d
mov esi, dword [edi + 0xd8]
mov ecx, esi
movsx edx, word [ebx + 0x20]
call fcn.00481700
mov ecx, dword [esp + 0x14]
mov edx, eax
push 0xffffffffffffffff
mov dword [esi], 0
call fcn.0049cdc0
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov ecx, edi
mov edx, dword [ebx + 0xc]
push esi
call fcn.004b5390
mov edi, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, esi
je 0x4b56b2
push esi
push eax
mov edx, 0x4f
mov ecx, edi
call fcn.0049c0b0
add esp, 8
mov dword [esp + 0x18], esi
mov ecx, dword [ebx + 8]
xor edx, edx
call fcn.004be300
movsx eax, al
mov edx, 0x55
push eax
push esi
mov ecx, edi
call fcn.0049c0b0
mov eax, dword [esp + 0x20]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esi, 0x80
cmp ecx, 0x2d
mov dword [esp + 0x18], esi
sete al
add eax, 0x34
mov ecx, eax
mov dword [esp + 0x20], ecx
jmp 0x4b56f9
xor esi, esi
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x28], edx
mov al, byte [edx]
cmp al, 0xa8
jne 0x4b5709
mov al, byte [edx + 0x26]
cmp al, 0xa9
jne 0x4b5712
lea eax, [edx + 0x14]
jmp 0x4b5719
cmp al, 0x83
jne 0x4b573b
mov eax, dword [edx + 0x14]
mov eax, dword [eax]
cmp dword [eax], 1
jle 0x4b573b
push esi
push ecx
push dword [ebp + 8]
mov edx, ebx
mov ecx, edi
call fcn.004b0820
mov eax, dword [ebp + 8]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.004b6340
mov edx, dword [ebx + 0x10]
add esp, 4
mov esi, eax
mov ecx, edi
lea eax, [esp + 0xc]
push eax
call fcn.004b6340
mov ecx, dword [esp + 0x1c]
add esp, 4
mov edx, dword [esp + 0x28]
or ecx, 0x20
push ecx
push dword [ebp + 8]
mov ecx, edi
push eax
push esi
push dword [esp + 0x30]
push dword [ebx + 0x10]
call fcn.004b05f0
add esp, 0x18
jmp 0x4b5923
mov edx, dword [ebx + 0xc]
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.004b6340
mov edx, dword [ebx + 0x10]
add esp, 4
mov esi, eax
mov ecx, edi
lea eax, [esp + 0xc]
push eax
call fcn.004b6340
mov edx, dword [esp + 0x24]
add esp, 4
mov ecx, dword [esp + 0x14]
push dword [ebp + 8]
push esi
push eax
call fcn.0049bf80
add esp, 0xc
jmp 0x4b5923
mov edx, dword [ebx + 0xc]
mov al, byte [edx]
cmp al, 0x93
jne 0x4b57e7
mov ebx, dword [ebp + 8]
mov ecx, edi
push ebx
push 1
call fcn.004b4ed0
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 0x91
jne 0x4b5807
mov ebx, dword [ebp + 8]
mov ecx, esi
mov edx, dword [edx + 8]
push ebx
push 1
call fcn.004b4e20
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x1c]
mov byte [esp + 0x6c], 0x93
push eax
lea edx, [esp + 0x70]
mov dword [esp + 0x74], 0x4400
mov ecx, edi
mov dword [esp + 0x78], 0
call fcn.004b6340
mov edx, dword [ebx + 0xc]
add esp, 4
mov esi, eax
mov ecx, edi
lea eax, [esp + 0xc]
push eax
call fcn.004b6340
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, 0x65
push dword [ebp + 8]
push esi
push eax
call fcn.0049bf80
add esp, 0xc
jmp 0x4b5923
mov edx, dword [ebx + 0xc]
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.004b6340
mov edx, dword [esp + 0x24]
add esp, 4
mov ecx, esi
push dword [ebp + 8]
push eax
call fcn.0049c0b0
add esp, 8
jmp 0x4b5923
mov edx, dword [ebx + 0xc]
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.004b6340
mov ecx, dword [ebx + 0x10]
add esp, 4
mov edx, eax
call fcn.004b26e0
mov ecx, eax
xor eax, eax
cmp byte [ebx + 0x26], 0x2d
sete al
xor eax, ecx
push eax
xor eax, eax
test ecx, ecx
mov ecx, esi
sete al
push eax
push dword [ebp + 8]
push edx
mov edx, 0x58
call fcn.0049c490
add esp, 0x10
jmp 0x4b5923
push dword [ebp + 8]
mov edx, 0x46
mov ecx, esi
push 1
call fcn.0049c0b0
mov edx, dword [ebx + 0xc]
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.004b6340
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov ecx, esi
push eax
call fcn.0049c050
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, 0x46
mov esi, eax
push dword [ebp + 8]
push 0
call fcn.0049c0b0
mov ecx, dword [esp + 0x1c]
add esp, 8
mov edx, esi
call fcn.0049c920
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4b593f
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x4b593f
movzx eax, al
mov dword [edi + eax*4 + 0x94], ecx
inc byte [edi + 0x13]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4b615d
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x4b615d
movzx eax, al
mov dword [edi + eax*4 + 0x94], ecx
inc byte [edi + 0x13]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x4b598f
push dword [ebx + 8]
push str.misuse_of_aggregate:__s__
push edi
call fcn.00480240
mov eax, dword [ebp + 8]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx ecx, word [ebx + 0x22]
mov eax, dword [eax + 0x28]
add ecx, ecx
mov eax, dword [eax + ecx*8 + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dword [ebx + 4], 0x1000000
mov eax, dword [edi]
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
mov al, byte [eax + 0x4e]
mov byte [esp + 0xc], al
je 0x4b59d6
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax + 0x34]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x17], 0
je 0x4b5a20
mov edx, ebx
mov byte [esp + 0x4c], 2
lea ecx, [esp + 0x38]
mov dword [esp + 0x3c], fcn.004b27a0
mov dword [esp + 0x40], 0x4b2660
mov dword [esp + 0x50], 0
call fcn.004adb70
cmp byte [esp + 0x4c], 0
je 0x4b5a20
push 0xffffffffffffffff
mov edx, ebx
mov ecx, edi
call fcn.004b6280
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dword [ebx + 4], 0x4000
je 0x4b5af6
mov dword [esp + 0x2c], 0
xor eax, eax
mov ecx, dword [ebx + 8]
mov edx, ecx
push 0
push dword [esp + 0x10]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x38]
push eax
mov dword [esp + 0x2c], eax
call fcn.004c3950
add esp, 0xc
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4b5d27
cmp dword [eax + 0x14], 0
jne 0x4b5d27
mov eax, dword [eax + 4]
test eax, 0x200
je 0x4b5b0c
dec dword [edi + 0x38]
mov ecx, edi
mov eax, dword [edi + 0x38]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
push ebx
mov edx, dword [eax + 4]
call fcn.004b6430
mov eax, dword [esp + 0x24]
add esp, 4
cmp eax, 1
jle 0x4b5ae1
mov ecx, dword [esp + 0x2c]
add ecx, 0x1c
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
push dword [esp + 0x28]
mov edx, 0x33
mov ecx, esi
push ebx
call fcn.0049c0b0
mov edx, dword [esp + 0x18]
mov ecx, edi
push ebx
mov edx, dword [edx]
call fcn.004b6430
add dword [esp + 0x1c], 0x18
add esp, 0xc
sub dword [esp + 0x18], 1
jne 0x4b5ab3
mov edx, dword [esp + 0x28]
mov ecx, esi
call fcn.0049c5e0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x2c], ecx
test ecx, ecx
je 0x4b5a35
mov eax, dword [ecx]
jmp 0x4b5a37
test eax, 0x400
je 0x4b5b2e
mov eax, dword [esp + 0x2c]
mov ecx, edi
push dword [ebp + 8]
mov edx, dword [eax + 4]
call fcn.004b5390
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0xc], eax
test ecx, ecx
jle 0x4b5bd6
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x1c]
add edx, 4
mov dword [esp + 0x10], edx
xor esi, esi
cmp eax, 0x20
jge 0x4b5b90
mov edx, dword [edx]
mov byte [esp + 0x4c], 1
mov dword [esp + 0x3c], fcn.004b27a0
mov dword [esp + 0x40], 0x4b2660
mov dword [esp + 0x50], 0
test edx, edx
je 0x4b5b8d
lea ecx, [esp + 0x38]
call fcn.004adb70
cmp byte [esp + 0x4c], 0
mov eax, dword [esp + 0xc]
je 0x4b5b90
bts esi, eax
test byte [ebx + 4], 0x20
je 0x4b5bb2
cmp dword [esp + 0x18], 0
jne 0x4b5bb2
mov edx, dword [esp + 0x10]
mov ecx, edi
mov edx, dword [edx]
call fcn.004b0350
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
inc eax
mov ecx, dword [esp + 0x20]
add edx, 0x18
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
cmp eax, ecx
jl 0x4b5b51
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x4b5c5a
cmp dword [esp + 0x10], 0
je 0x4b5c02
mov eax, dword [edi + 0x2c]
lea esi, [eax + 1]
add eax, ecx
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x2c], eax
jmp 0x4b5c15
mov edx, ecx
mov ecx, edi
call fcn.004b7c10
mov edx, dword [esp + 0x2c]
mov ecx, eax
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
test al, 0xc0
je 0x4b5c45
mov ebx, dword [edx + 4]
mov bl, byte [ebx]
mov byte [esp + 0x27], bl
cmp bl, 0xa2
mov ebx, dword [esp + 0x28]
je 0x4b5c39
cmp byte [esp + 0x27], 0xa4
jne 0x4b5c45
mov esi, dword [edx + 4]
and al, 0xc0
mov byte [esi + 0x26], al
mov esi, dword [esp + 0x14]
push 3
push 0
push ecx
mov ecx, edi
call fcn.004b6490
mov edx, dword [esp + 0x38]
add esp, 0xc
jmp 0x4b5c62
mov dword [esp + 0xc], 0
cmp dword [esp + 0x20], 2
jl 0x4b5c8d
test byte [ebx + 4], 0x80
je 0x4b5c8d
push dword [edx + 0x1c]
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
push ebx
call fcn.004e4640
add esp, 8
mov dword [esp + 0x1c], eax
jmp 0x4b5c9e
mov ebx, dword [esp + 0x20]
test ebx, ebx
jle 0x4b5c9a
push dword [edx + 4]
jmp 0x4b5c76
mov eax, dword [esp + 0x1c]
test byte [eax + 4], 0x20
je 0x4b5ccf
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4b5cb3
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 8]
push 0xfffffffffffffffe
push eax
push 0
push 0
push 0
mov edx, 0x52
mov ecx, esi
call fcn.0049c340
mov eax, dword [esp + 0x30]
add esp, 0x14
mov edx, dword [edi + 0x34]
mov ecx, esi
push 0xfffffffffffffff8
push eax
push dword [ebp + 8]
neg edx
push dword [esp + 0x18]
sbb edx, edx
push dword [esp + 0x20]
add edx, 0x3f
call fcn.0049c340
add esp, 0x14
movzx edx, bl
mov ecx, esi
call fcn.0049c900
test ebx, ebx
je 0x4b615d
cmp dword [esp + 0x10], 0
jne 0x4b615d
mov edx, dword [esp + 0xc]
mov ecx, edi
push ebx
call fcn.004b7c70
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esp + 0x34]
push str.unknown_function:__s__
push edi
call fcn.00480240
mov eax, dword [ebp + 8]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, 0x83
jne 0x4b5d72
mov eax, dword [ebx + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
cmp eax, 1
je 0x4b5d72
push 1
push eax
push str.sub_select_returns__d_columns___expected__d
push edi
call fcn.00480240
mov eax, dword [ebp + 8]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, ebx
mov ecx, edi
call fcn.004b3d30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0xc]
cmp dword [ecx + 0x1c], 0
jne 0x4b5d9d
mov edx, ecx
mov ecx, edi
call fcn.004b3d30
mov ecx, dword [ebx + 0xc]
mov dword [ecx + 0x1c], eax
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 0x1c]
test edx, edx
je 0x4b5dc0
call fcn.004b06b0
cmp edx, eax
je 0x4b5dc0
push eax
push edx
push str._d_columns_assigned__d_values
push edi
call fcn.00480240
mov ecx, dword [ebx + 0xc]
add esp, 0x10
movsx eax, word [ebx + 0x20]
add eax, dword [ecx + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [edi + 0x38]
mov edx, 0x49
mov eax, dword [esp + 0x10]
dec esi
push dword [ebp + 8]
mov ecx, dword [esp + 0x18]
push 0
lea edi, [esi - 1]
mov dword [eax + 0x38], edi
call fcn.0049c0b0
mov ecx, dword [esp + 0x18]
mov edx, ebx
push edi
push esi
call fcn.004b4070
mov ebx, dword [ebp + 8]
mov edx, 0x46
mov ecx, dword [esp + 0x24]
push ebx
push 1
call fcn.0049c0b0
mov edx, esi
mov esi, dword [esp + 0x2c]
mov ecx, esi
call fcn.0049c5e0
push 0
push ebx
mov edx, 0x53
mov ecx, esi
call fcn.0049c0b0
add esp, 0x20
mov edx, edi
mov ecx, esi
call fcn.0049c5e0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov edx, ebx
push 0
push 0
push esi
mov ecx, edi
call fcn.004b6680
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x2c]
mov edx, 0x95
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x34], eax
movsx ecx, word [eax + 0x2a]
movsx eax, word [ebx + 0x20]
inc ecx
imul ecx, dword [ebx + 0x1c]
push esi
inc ecx
add eax, ecx
mov ecx, edi
push eax
call fcn.0049c0b0
movzx eax, word [ebx + 0x20]
add esp, 8
test ax, ax
js 0x4b615d
movsx ecx, ax
mov eax, dword [esp + 0x34]
add ecx, ecx
mov eax, dword [eax + 4]
cmp byte [eax + ecx*8 + 0xd], 0x45
jne 0x4b615d
push esi
mov edx, 0x54
mov ecx, edi
call fcn.0049c050
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.row_value_misused
push edi
call fcn.00480240
mov eax, dword [ebp + 8]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebx + 0x1c]
mov edx, 0x15
mov ecx, esi
call fcn.0049c050
mov edx, dword [ebx + 0xc]
add esp, 4
mov ecx, edi
mov esi, eax
push dword [ebp + 8]
call fcn.004b5390
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, esi
mov dword [ebp + 8], eax
call fcn.0049c920
push dword [ebp + 8]
mov ecx, dword [esp + 0x18]
mov edx, esi
call fcn.0049c8c0
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x78], 0
jne 0x4b5f4c
push str.RAISE___may_only_be_used_within_a_trigger_program
push edi
call fcn.00480240
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebx + 1]
cmp al, 2
jne 0x4b5f64
mov eax, dword [edi + 0x74]
mov ecx, edi
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov al, byte [ebx + 1]
mov ecx, dword [ebx + 8]
push 0
cmp al, 4
jne 0x4b5f8d
push ecx
push 0
push 4
push 0
mov edx, 0x45
mov ecx, esi
call fcn.0049c340
mov eax, dword [ebp + 8]
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push ecx
movsx eax, al
mov edx, 0x713
push eax
mov ecx, edi
call fcn.004c2b10
mov eax, dword [ebp + 8]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x14]
xor edx, edx
mov dword [esp + 0x2c], eax
lea ecx, [eax + 4]
mov eax, dword [eax]
dec dword [edi + 0x38]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x38]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
test eax, eax
je 0x4b605a
mov edx, eax
lea ecx, [esp + 0x6c]
call fcn.004b1510
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
lea edx, [esp + 0x70]
call fcn.004b5280
add esp, 4
lea ecx, [esp + 0x6c]
mov ebx, eax
mov edx, dword [ecx + 4]
test edx, 0x41000
je 0x4b6022
test edx, 0x40000
je 0x4b601b
mov eax, dword [ecx + 0x14]
mov ecx, dword [eax + 4]
jmp 0x4b601e
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x4b6000
mov al, byte [ecx]
and dword [ecx + 4], 0xffffefff
push 0x34
mov byte [ecx + 0x26], al
lea eax, [esp + 0x3c]
push 0
push eax
mov byte [ecx], 0xa8
mov dword [ecx + 0x1c], ebx
call fcn.00573560
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x78]
add esp, 0xc
mov byte [esp + 0x38], 0x35
mov dword [esp + 0x44], eax
lea edx, [esp + 0x38]
mov eax, dword [esp + 0x30]
mov ebx, dword [ebp + 8]
dec eax
test eax, eax
jle 0x4b60fd
dec eax
shr eax, 1
inc eax
mov dword [esp + 0x28], eax
mov ecx, dword [ecx]
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x18], 0
push 0x10
cmovne eax, ecx
cmove edx, ecx
dec dword [edi + 0x38]
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 0x38]
push eax
push edx
push edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x44], eax
call fcn.004b6bc0
mov edx, dword [esp + 0x20]
mov ecx, edi
push ebx
mov edx, dword [edx + 0x18]
call fcn.004b6430
mov edx, dword [esp + 0x20]
add esp, 0x14
mov ecx, esi
call fcn.0049c120
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x34]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4b60da
push edx
mov edx, esi
call fcn.0049c590
add esp, 4
jmp 0x4b60e3
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
add ecx, 0x30
sub dword [esp + 0x28], 1
mov dword [esp + 0x10], ecx
jne 0x4b6072
mov eax, dword [esp + 0x30]
push ebx
test al, 1
je 0x4b611d
lea edx, [eax + eax*2]
mov ecx, edi
mov eax, dword [esp + 0x30]
mov edx, dword [eax + edx*8 - 0x14]
call fcn.004b6430
add esp, 4
jmp 0x4b612e
push 0
mov edx, 0x49
mov ecx, esi
call fcn.0049c0b0
add esp, 8
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0xc]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4b6154
push edx
mov edx, esi
call fcn.0049c590
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret