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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
xor edx, edx
push esi
mov esi, dword [ebx + 8]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
cmp esi, edx
jne 0x476763
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0xc]
mov eax, 0x65
cmp edi, edx
je 0x476773
movzx eax, byte [edi]
mov dword [ebp - 0xc], eax
add eax, 0xffffffed
cmp eax, 0x8c
ja case.0x47678b.21
movzx eax, byte [eax + 0x4774ac]
jmp dword [eax*4 + 0x477444]
movsx ecx, word [edi + 0x22]
mov eax, dword [edi + 0x28]
cmp byte [eax], 0
mov edx, dword [eax + 0x1c]
lea ecx, [ecx + ecx*2]
lea ecx, [edx + ecx*8]
jne 0x4767b4
mov eax, dword [ecx + 0x10]
pop edi
pop esi
mov dword [ebp - 0x20], eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [eax + 1], 0
je 0x4767da
mov edx, dword [ebp + 0x10]
mov ecx, dword [ecx + 0xc]
push edx
mov edx, dword [eax + 8]
push ecx
push edx
push 0x2e
call fcn.00478b80
mov eax, dword [ebp - 0x20]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edx, edx
mov eax, dword [edi + 0x1c]
cmp eax, edx
jge 0x4767fd
mov ecx, dword [ebx + 0x60]
cmp ecx, edx
jle 0x4767fa
movsx eax, word [edi + 0x20]
pop edi
add eax, ecx
pop esi
mov dword [ebp - 0x20], eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x64]
mov ecx, edi
movzx edx, byte [ecx + 0x26]
push edx
mov edx, dword [ebp + 0x10]
push edx
push eax
movsx eax, word [ecx + 0x20]
mov ecx, dword [ecx + 0x2c]
push eax
push ecx
mov edi, ebx
call fcn.00476450
add esp, 0x14
pop edi
pop esi
mov dword [ebp - 0x20], eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, edi
mov ecx, ebx
call fcn.00475ea0
mov eax, dword [ebp - 0x20]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
push eax
mov ecx, edi
mov ecx, dword [ecx + 8]
push 0
mov edi, esi
call fcn.00475e20
mov eax, dword [ebp - 0x20]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 8]
mov eax, dword [ebp + 0x10]
push 0
push edx
push 0
push eax
push 0
push 0x61
call fcn.00478d00
mov eax, dword [ebp - 0x20]
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
push ecx
push 0
push 0x1c
call fcn.00478ca0
mov eax, dword [ebp - 0x20]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, edi
mov ecx, dword [edx + 8]
add ecx, 2
call fcn.0044f690
lea ebx, [eax - 1]
mov eax, dword [esi]
push ebx
push eax
mov edi, ecx
call fcn.00450560
push 0xffffffffffffffff
push eax
mov eax, dword [ebp + 0x10]
push 0
push eax
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
push eax
push 0x1e
call fcn.00478d00
mov eax, dword [ebp - 0x20]
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
movsx edx, word [edi + 0x20]
push ecx
push edx
push 0x1f
call fcn.00478ca0
mov eax, dword [edi + 8]
add esp, 0xc
cmp byte [eax + 1], 0
je 0x476ab2
mov eax, dword [ebx + 0x1dc]
mov ecx, edi
movsx edx, word [ecx + 0x20]
mov ebx, dword [eax + edx*4 - 4]
mov eax, esi
mov ecx, dword [eax + 4]
mov edi, dword [eax]
test ecx, ecx
je 0x476960
cmp byte [edi + 0x40], 0
jne 0x476960
mov edx, eax
mov eax, dword [edx + 0x20]
lea eax, [eax + eax*2 - 3]
lea esi, [ecx + eax*8]
movsx eax, byte [esi + 1]
mov ecx, dword [esi + 0x10]
call fcn.004791c0
xor eax, eax
mov dword [esi + 0x10], eax
cmp ebx, eax
jne 0x47694f
pop edi
mov dword [esi + 0x10], eax
mov byte [esi + 1], al
mov eax, dword [ebp - 0x20]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
pop edi
mov dword [esi + 0x10], ebx
mov byte [esi + 1], 0xfe
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
mov eax, 0xfffffffe
call fcn.004791c0
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x1c]
pop edi
pop esi
mov dword [ebp - 0x20], ecx
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [edi + 0xc]
push edx
push eax
push ebx
call fcn.00476730
add esp, 0xc
pop edi
pop esi
mov dword [ebp - 0x20], eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov edx, edi
mov eax, dword [edx + 0xc]
push ecx
push eax
push ebx
call fcn.00476730
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
mov esi, eax
add esp, 0xc
xor edi, edi
mov dword [ebp - 0x20], esi
call fcn.004492e0
movsx edi, al
add edi, 0x2e
cmp esi, dword [ebp + 0x10]
je 0x4769ea
mov edx, dword [ebp + 0x10]
push edx
mov eax, esi
mov esi, dword [ebp - 0x1c]
push eax
push 0x22
call fcn.00478ca0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
push edx
push edi
call fcn.00478c40
mov edi, dword [ebp - 0x20]
add esp, 8
mov ecx, 1
mov eax, ebx
call fcn.004760e0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
mov esi, edi
mov eax, dword [esi + 0xc]
mov ecx, ebx
call fcn.004775a0
lea ecx, [ebp - 0x14]
mov edi, eax
mov eax, dword [esi + 0x10]
push ecx
mov ecx, ebx
call fcn.004775a0
mov edx, dword [ebp + 0x10]
mov ecx, dword [esi + 0x10]
push 0x10
push edx
push eax
mov eax, dword [ebp - 0xc]
push edi
push eax
push ecx
mov ebx, dword [esi + 0xc]
mov edi, dword [ebp + 8]
call fcn.004736e0
add esp, 0x20
mov ebx, edi
mov esi, dword [ebp - 4]
test esi, esi
je 0x476a82
mov dl, byte [ebx + 0x13]
cmp dl, 8
jae 0x476a82
xor eax, eax
lea ecx, [ebx + 0x78]
cmp dword [ecx + 0xc], esi
je 0x47742a
inc eax
add ecx, 0x14
cmp eax, 0xa
jl 0x476a66
movzx eax, dl
mov dword [ebx + eax*4 + 0x1c], esi
inc byte [ebx + 0x13]
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x476ab2
mov dl, byte [ebx + 0x13]
cmp dl, 8
jae 0x476ab2
xor eax, eax
lea ecx, [ebx + 0x78]
cmp dword [ecx + 0xc], esi
je 0x477433
inc eax
add ecx, 0x14
cmp eax, 0xa
jl 0x476a96
movzx ecx, dl
mov dword [ebx + ecx*4 + 0x1c], esi
inc byte [ebx + 0x13]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 4]
mov esi, edi
mov eax, dword [esi + 0xc]
push edx
mov ecx, ebx
call fcn.004775a0
mov edi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esi + 0x10]
mov ecx, ebx
call fcn.004775a0
mov ecx, dword [ebp + 0x10]
xor edx, edx
cmp dword [ebp - 0xc], 0x49
push 0x90
sete dl
push ecx
push eax
mov eax, dword [esi + 0x10]
push edi
add edx, 0x4e
push edx
push eax
jmp 0x476a42
mov eax, dword [edi + 0xc]
lea ecx, [ebp - 4]
push ecx
mov ecx, ebx
call fcn.004775a0
lea edx, [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x10]
push edx
mov ecx, ebx
call fcn.004775a0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
push ecx
push edx
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.00478b80
add esp, 0x18
jmp 0x476a52
mov eax, dword [edi + 0xc]
mov cl, byte [eax]
cmp cl, 0x84
jne 0x476b5b
mov ecx, dword [ebp + 0x10]
push ecx
push 1
mov ecx, ebx
call fcn.00475ea0
mov edx, dword [ebp + 0x10]
add esp, 8
mov dword [ebp - 0x20], edx
jmp 0x476a52
cmp cl, 0x85
jne 0x476b7e
mov edx, dword [ebp + 0x10]
mov ecx, dword [eax + 8]
push edx
push 1
mov edi, esi
call fcn.00475e20
mov edx, dword [ebp + 0x10]
add esp, 8
mov dword [ebp - 0x20], edx
jmp 0x476a52
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x5c]
mov ecx, ebx
mov byte [ebp - 0x5c], 0x84
mov dword [ebp - 0x58], 0x4400
mov dword [ebp - 0x54], edx
call fcn.004775a0
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0xc]
push ecx
mov ecx, ebx
call fcn.004775a0
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
push edx
push ecx
push eax
push 0x5a
call fcn.00478b80
mov edx, dword [ebp + 0x10]
add esp, 0x18
mov dword [ebp - 0x20], edx
jmp 0x476a52
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 0xc]
mov ecx, ebx
call fcn.004775a0
mov ecx, dword [ebp + 0x10]
push ecx
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0xc]
push eax
push ecx
call fcn.00478ca0
add esp, 0x10
jmp 0x476a52
mov edx, dword [ebp + 0x10]
push edx
push 1
push 0x19
call fcn.00478ca0
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 0xc]
mov ecx, ebx
call fcn.004775a0
mov ecx, dword [ebp - 0xc]
push eax
push ecx
call fcn.00478c40
mov edx, dword [ebp + 0x10]
push 0xffffffffffffffff
push edx
push 0x25
mov edi, eax
call fcn.00478ca0
add esp, 0x24
mov eax, edi
mov edx, esi
call fcn.004791a0
jmp 0x476a52
mov eax, dword [edi + 0x28]
cmp eax, edx
jne 0x476c58
mov eax, dword [edi + 8]
push eax
push str.misuse_of_aggregate:__s__
push ebx
call fcn.0044f750
mov eax, dword [ebp - 0x20]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx ecx, word [edi + 0x22]
mov edx, dword [eax + 0x28]
pop edi
add ecx, ecx
mov eax, dword [edx + ecx*8 + 8]
pop esi
mov dword [ebp - 0x20], eax
pop ebx
mov esp, ebp
pop ebp
ret
test dword [edi + 4], 0x4000
mov ecx, dword [ecx + 0x10]
mov eax, dword [ecx + 0xc]
mov cl, byte [eax + 0x4d]
mov dword [ebp - 0x10], edx
mov byte [ebp - 0x28], cl
mov dword [ebp - 0x14], edx
je 0x476c8f
mov dword [ebp - 4], edx
jmp 0x476c9b
mov edi, dword [edi + 0x14]
mov dword [ebp - 4], edi
cmp edi, edx
je 0x476c9b
mov edx, dword [edi]
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 8]
mov ecx, esi
mov dword [ebp + 8], edx
call fcn.0044f690
mov ecx, dword [ebp - 0x28]
push 0
push ecx
push edx
mov edi, eax
mov eax, dword [ebp - 0x18]
push esi
push eax
call fcn.00447200
add esp, 0x14
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x476ce2
push esi
push edi
push str.unknown_function:__.s__
push ebx
call fcn.0044f750
mov eax, dword [ebp - 0x20]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, eax
movzx eax, word [ecx + 2]
test eax, 0x200
je 0x476d92
mov eax, dword [ebp - 0x1c]
call fcn.00478f10
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push edx
mov edx, dword [ecx]
push edx
push ebx
call fcn.004776f0
mov eax, dword [ebp + 8]
add esp, 0xc
cmp eax, 1
jle 0x476d79
dec eax
mov dword [ebp + 8], 0x18
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp - 0x1c]
push eax
push edi
push 0x4d
call fcn.00478ca0
mov ecx, 1
mov eax, ebx
call fcn.004760e0
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edi, 1
add dword [ebx + 0x68], edi
mov eax, dword [edx + 8]
push ecx
mov ecx, dword [esi + eax]
push ecx
push ebx
call fcn.004776f0
add esp, 0x18
mov eax, ebx
call fcn.004761e0
add esi, 0x18
sub dword [ebp - 0x18], edi
mov dword [ebp + 8], esi
jne 0x476d27
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
push edx
call fcn.00478f80
mov eax, dword [ebp - 0x20]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, 0x400
je 0x476db9
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov edx, dword [ecx + 8]
push eax
mov eax, dword [edx]
push eax
push ebx
call fcn.004776f0
mov eax, dword [ebp - 0x20]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
xor esi, esi
lea edi, [esi + 1]
cmp eax, esi
jle 0x476e21
mov dword [ebp - 8], esi
cmp esi, 0x20
jge 0x476dec
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + eax]
push ecx
call fcn.00474e10
add esp, 4
test eax, eax
mov eax, dword [ebp + 8]
je 0x476dec
or dword [ebp - 0x10], edi
mov edx, dword [ebp - 0xc]
test byte [edx + 2], 0x20
je 0x476e16
cmp dword [ebp - 0x14], 0
jne 0x476e16
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 8]
mov ecx, dword [ecx + edx]
push ebx
call fcn.004734c0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
add esp, 4
add dword [ebp - 8], 0x18
inc esi
rol edi, 1
cmp esi, eax
jl 0x476dc8
cmp dword [ebp - 4], 0
je 0x476e92
cmp dword [ebp - 0x10], 0
je 0x476e3d
mov ecx, dword [ebx + 0x4c]
lea edx, [ecx + 1]
add ecx, eax
mov dword [ebp - 8], edx
mov dword [ebx + 0x4c], ecx
jmp 0x476e49
mov esi, eax
mov ecx, ebx
call fcn.00478a50
mov dword [ebp - 8], eax
mov esi, dword [ebp - 0xc]
test byte [esi + 2], 0xc0
je 0x476e6f
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
mov cl, byte [eax]
cmp cl, 0x9a
je 0x476e66
cmp cl, 0x9c
jne 0x476e6f
mov dl, byte [esi + 2]
and dl, 0xc0
mov byte [eax + 0x26], dl
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 4]
inc dword [ebx + 0x68]
push eax
push ebx
mov cl, 3
mov edx, esi
call fcn.004778c0
add esp, 8
mov eax, ebx
call fcn.004761e0
mov eax, dword [ebp + 8]
jmp 0x476e9c
mov esi, dword [ebp - 4]
mov dword [ebp - 8], 0
cmp eax, 2
jl 0x476ec5
mov ecx, dword [ebp + 0xc]
test byte [ecx + 4], 0x80
je 0x476ec5
mov edx, dword [esi + 8]
mov ecx, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [edx + 0x18]
push ecx
call fcn.00460c20
add esp, 0xc
mov edi, eax
jmp 0x476ee6
test eax, eax
jle 0x476ee3
mov edx, dword [esi + 8]
mov ecx, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [edx]
push ecx
call fcn.00460c20
add esp, 0xc
mov edi, eax
jmp 0x476ee6
mov edi, dword [ebp - 0xc]
test byte [edi + 2], 0x20
je 0x476f14
cmp dword [ebp - 0x14], 0
jne 0x476efb
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
push 0xfffffffffffffffc
push ecx
push 0
push 0
push 0
push 0x24
call fcn.00478d00
add esp, 0x18
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x1c]
push 0xfffffffffffffffb
push edi
push edx
push eax
push ecx
push 1
call fcn.00478d00
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 8]
add esp, 0x18
test eax, eax
je 0x476f44
mov esi, dword [esi + 0x20]
lea edx, [esi + esi*2]
mov byte [eax + edx*8 - 0x15], cl
test ecx, ecx
je 0x476ab2
cmp dword [ebp - 0x10], 0
jne 0x476ab2
mov edi, dword [ebp - 8]
mov eax, ebx
call fcn.004760e0
mov eax, dword [ebp + 8]
cmp eax, dword [ebx + 0x3c]
jle 0x476ab2
mov dword [ebx + 0x40], edi
pop edi
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp - 0x20]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push edi
push ebx
call fcn.00475520
add esp, 0x10
pop edi
pop esi
mov dword [ebp - 0x20], eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
call fcn.00478f10
mov dword [ebp + 8], eax
mov eax, esi
call fcn.00478f10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0x1c
call fcn.00478ca0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
push ecx
push edx
push edi
push ebx
call fcn.00475a40
mov edi, dword [ebp + 0x10]
push edi
push 1
push 0x19
call fcn.00478ca0
mov eax, dword [ebp + 8]
push eax
mov ecx, esi
call fcn.00478f80
push 0
push edi
push 0x25
call fcn.00478ca0
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.00478f80
mov eax, dword [ebp - 0x20]
add esp, 0x3c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
mov edx, dword [eax + 0x14]
mov edi, dword [eax + 0xc]
mov esi, dword [edx + 8]
mov eax, dword [esi]
lea ecx, [ebp - 4]
mov dword [ebp - 0x18], eax
push ecx
mov eax, edi
mov ecx, ebx
mov dword [ebp - 0xc], edi
call fcn.004775a0
lea edx, [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
push edx
mov ecx, ebx
call fcn.004775a0
mov ecx, ebx
mov dword [ebp - 0x28], eax
call fcn.00478a00
mov edx, eax
mov dword [ebp - 0x24], edx
call fcn.00478a00
mov ecx, dword [ebp - 8]
push 0x10
push edx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x28]
push eax
push ecx
push 0x53
mov ebx, edi
mov edi, dword [ebp + 8]
push edx
call fcn.004736e0
mov ebx, dword [esi + 0x18]
mov esi, dword [ebp - 0x14]
mov edx, edi
call fcn.00478a20
lea eax, [ebp - 0x14]
push eax
mov eax, ebx
mov ecx, edi
call fcn.004775a0
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
push 0x10
push esi
push eax
push ecx
push 0x51
push ebx
mov ebx, dword [ebp - 0xc]
call fcn.004736e0
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp - 0x24]
push edx
push esi
mov esi, dword [ebp - 0x1c]
push edi
push 0x48
call fcn.00478b80
mov edx, dword [ebp + 8]
add esp, 0x4c
mov esi, edi
call fcn.00478a20
mov esi, dword [ebp - 0x10]
call fcn.00478a20
mov ebx, edx
jmp 0x476a52
mov eax, dword [ebp + 0x10]
mov ecx, dword [edi + 0xc]
push eax
push ecx
push ebx
call fcn.00476730
add esp, 0xc
pop edi
pop esi
mov dword [ebp - 0x20], eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x2c]
movsx edx, word [eax + 0x26]
mov ebx, dword [ebp + 0x10]
inc edx
imul edx, dword [edi + 0x1c]
mov dword [ebp + 8], eax
movsx eax, word [edi + 0x20]
push ebx
lea ecx, [edx + eax + 1]
push ecx
push 0x80
call fcn.00478ca0
movzx eax, word [edi + 0x20]
add esp, 0xc
test ax, ax
jns 0x477114
mov eax, str.rowid
jmp 0x477121
cwde
lea edx, [eax + eax*2]
mov eax, dword [edi + 0x2c]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edx*8]
cmp dword [edi + 0x1c], 0
mov ecx, 0x54d93c
jne 0x477131
mov ecx, 0x54d940
push ebx
push eax
push ecx
push str._s._s______d
push esi
call fcn.00479490
movzx eax, word [edi + 0x20]
add esp, 0x14
test ax, ax
js 0x476ab2
cwde
lea edx, [eax + eax*2]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
cmp byte [ecx + edx*8 + 0x15], 0x65
jne 0x476ab2
mov edx, ebx
push edx
push 0x27
call fcn.00478c40
mov eax, dword [ebp - 0x20]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x1a0], edx
jne 0x47719a
push str.RAISE___may_only_be_used_within_a_trigger_program
push ebx
call fcn.0044f750
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [edi + 1], 2
jne 0x4771a7
mov ecx, ebx
call fcn.0044d340
mov al, byte [edi + 1]
push 0
cmp al, 4
jne 0x4771ce
mov eax, dword [edi + 8]
push eax
push 0
push 4
push 0
push 0x18
call fcn.00478d00
mov eax, dword [ebp - 0x20]
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
mov edx, dword [ecx + 8]
push 0
push edx
movsx edi, al
push 0x713
mov eax, ebx
call fcn.0044d360
mov eax, dword [ebp - 0x20]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x14]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x18], edx
mov edx, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, esi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], edx
call fcn.00478f10
mov edi, dword [edi + 0xc]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x477263
mov eax, edi
mov esi, eax
mov ecx, 0xc
lea edi, [ebp - 0x5c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 4]
push ecx
mov ecx, ebx
call fcn.004775a0
mov dl, byte [ebp - 0x5c]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x8c]
add esp, 4
and dword [ebp - 0x58], 0xffffefff
mov byte [ebp - 0x36], dl
mov byte [ebp - 0x5c], 0x9f
mov byte [ebp - 0x8c], 0x4f
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 8]
lea eax, [ecx - 1]
xor edi, edi
cmp eax, edi
jle 0x477396
mov edx, dword [ebp - 0x24]
dec eax
shr eax, 1
inc eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
inc dword [ebx + 0x68]
cmp dword [ebp - 0xc], 0
je 0x477293
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x7c], ecx
jmp 0x47729b
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x18], eax
mov edi, dword [esi + 0x18]
mov eax, dword [edi + 0x70]
lea edx, [eax - 1]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
mov dword [edi + 0x70], ecx
test eax, edx
jne 0x4772e3
mov esi, dword [edi]
mov ebx, dword [edi + 0x74]
lea ecx, [eax*8 + 4]
mov eax, esi
call fcn.0044f4f0
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x4772d7
mov eax, ebx
mov ecx, esi
call fcn.0044f250
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0x1c]
mov dword [edi + 0x74], eax
mov eax, dword [ebp - 0x14]
mov edi, dword [edi + 0x74]
test edi, edi
je 0x4772f1
mov dword [edi + eax*4], 0xffffffff
mov eax, dword [ebp - 0x18]
or edi, 0xffffffff
sub edi, dword [ebp - 0x14]
push 8
push edi
push eax
push ebx
call fcn.00477f00
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x18]
push ecx
push eax
push ebx
call fcn.004776f0
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
add esp, 0x1c
mov dword [ebp - 0x24], eax
cmp dword [ecx + 0x58], eax
jg 0x477333
push esi
call fcn.00478b00
add esp, 4
test eax, eax
jne 0x47735f
inc dword [esi + 0x20]
mov eax, dword [ebp - 0x24]
lea edx, [eax + eax*2]
mov eax, dword [esi + 4]
lea eax, [eax + edx*8]
mov edx, dword [ebp - 0x28]
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x10
mov dword [eax + 0x14], ecx
mov eax, ebx
call fcn.004761e0
mov ecx, dword [esi + 0x18]
or eax, 0xffffffff
sub eax, edi
js 0x47737d
mov edx, dword [ecx + 0x74]
test edx, edx
je 0x47737d
mov edi, dword [esi + 0x20]
mov dword [edx + eax*4], edi
mov eax, dword [esi + 0x20]
add dword [ebp - 0x10], 0x30
dec eax
dec dword [ebp - 4]
mov dword [ecx + 0x5c], eax
jne 0x477280
mov ecx, dword [ebp - 8]
xor edi, edi
test cl, 1
je 0x4773c2
mov edx, dword [ebp + 0x10]
inc dword [ebx + 0x68]
lea eax, [ecx + ecx*2]
mov ecx, dword [ebp - 0x2c]
push edx
mov edx, dword [ecx + 8]
mov eax, dword [edx + eax*8 - 0x18]
push eax
push ebx
call fcn.004776f0
add esp, 0xc
mov eax, ebx
call fcn.004761e0
jmp 0x477401
mov ebx, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0x58], ebx
jg 0x4773da
push esi
call fcn.00478b00
add esp, 4
test eax, eax
jne 0x477401
mov eax, dword [esi + 4]
inc dword [esi + 0x20]
mov ecx, dword [ebp + 0x10]
lea edx, [ebx + ebx*2]
lea eax, [eax + edx*8]
mov byte [eax + 3], 0
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov word [eax], 0x1c
mov dword [eax + 0x14], edi
mov ecx, dword [esi + 0x18]
or eax, 0xffffffff
sub eax, dword [ebp - 0x28]
js 0x477419
mov edx, dword [ecx + 0x74]
cmp edx, edi
je 0x477419
mov edi, dword [esi + 0x20]
mov dword [edx + eax*4], edi
mov edx, dword [esi + 0x20]
mov eax, dword [ebp - 0x20]
pop edi
dec edx
pop esi
mov dword [ecx + 0x5c], edx
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ecx + 6], 1
jmp 0x476a82
mov eax, dword [ebp - 0x20]
pop edi
pop esi
mov byte [ecx + 6], 1
pop ebx
mov esp, ebp
pop ebp
ret