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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x71b3e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
movzx eax, word [edi + 8]
mov ebx, ecx
cmp eax, dword [0x746690]
je 0x4f67de
xor eax, eax
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 4]
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 8]
push eax
mov dword [esp + 0x20], 1
call fcn.004ae830
mov edx, dword [0x7a3a28]
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 0xb8]
mov esi, dword [eax + 0x94]
push 0
mov ecx, edi
mov dword [esp + 0x3c], esi
call fcn.00503690
push str.Subs_Save
lea ecx, [esp + 0x4c]
mov dword [esp + 0x18], eax
call fcn.005e5a90
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x4c]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0xa0], 0
call fcn.00413660
lea ecx, [esp + 0x48]
mov dword [esp + 0x94], 0xffffffff
call fcn.005e5c20
mov eax, dword [edi + 0x18]
push 0
push 0
push 1
push eax
mov eax, dword [esp + 0x30]
push 5
push eax
push 1
mov ecx, ebx
call fcn.005b92b0
test al, al
je 0x4f68f4
push 1
mov ecx, edi
call fcn.00503690
cmp eax, 1
mov ecx, ebx
push 0
jne 0x4f68bf
call fcn.004ef560
mov edx, dword [0x7441ec]
mov ebx, dword [ebx + 4]
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 8]
push edi
push edx
push ebx
push ebx
push 0
push 0
call fcn.004aed80
mov ecx, eax
call fcn.004b08d0
jmp 0x4f68cf
call fcn.004ef560
push 1
push 1
mov ecx, edi
call fcn.005036a0
push 2
mov ecx, edi
call fcn.00503690
test eax, eax
jne 0x4f68e7
push 1
push 2
mov ecx, edi
call fcn.005036a0
mov dword [esp + 0x1c], 0
jmp 0x4f6cf3
push str.Dice_
lea ecx, [esp + 0x6c]
call fcn.005e5a90
push str.Dam_
lea ecx, [esp + 0x64]
mov dword [esp + 0x98], 1
call fcn.005e5a90
push str.Type_
lea ecx, [esp + 0x5c]
mov byte [esp + 0x98], 2
call fcn.005e5a90
mov byte [esp + 0x94], 3
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x54]
call fcn.005e5bc0
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x84]
push edx
lea ecx, [esp + 0x70]
mov byte [esp + 0x9c], 4
call fcn.005e5d10
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push ecx
push eax
push edx
mov ecx, esi
mov byte [esp + 0xa0], 5
call fcn.00413660
test eax, eax
je 0x4f6a28
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x68]
call fcn.005e5d10
lea edx, [esp + 0x30]
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
mov ecx, esi
mov byte [esp + 0xa0], 6
call fcn.00413660
lea ecx, [esp + 0x70]
mov dword [esp + 0x24], eax
mov byte [esp + 0x94], 5
call fcn.005e5c20
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4f6a28
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x60]
call fcn.005e5d10
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x34]
push ecx
push eax
push edx
mov ecx, esi
mov byte [esp + 0xa0], 7
call fcn.00413660
lea ecx, [esp + 0x78]
mov dword [esp + 0x24], eax
mov byte [esp + 0x94], 5
call fcn.005e5c20
mov eax, dword [esp + 0x24]
test eax, eax
mov byte [esp + 0x13], 1
jne 0x4f6a2d
mov byte [esp + 0x13], 0
lea ecx, [esp + 0x80]
mov byte [esp + 0x94], 4
call fcn.005e5c20
mov al, byte [esp + 0x13]
test al, al
je 0x4f6b31
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push eax
push ecx
mov ecx, dword [0x7a3a28]
call fcn.00550b60
movzx edx, ax
push 0x8c
mov dword [esp + 0x28], edx
call fcn.006fa7e6
add esp, 4
mov dword [esp + 0x48], eax
test eax, eax
mov byte [esp + 0x94], 8
je 0x4f6a93
push 1
mov ecx, eax
call fcn.00503e40
mov esi, eax
jmp 0x4f6a95
xor esi, esi
mov eax, dword [edi + 0x18]
push eax
mov ecx, esi
mov byte [esp + 0x98], 4
call fcn.00503a00
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
xor ecx, ecx
mov cl, byte [edi + 0xa]
xor eax, eax
mov ax, word [esi + 0xa]
and ecx, 0x18
and eax, 0xffe7
or eax, ecx
mov word [esi + 0xa], ax
xor ecx, ecx
mov cl, byte [edi + 0xa]
and eax, 0xfff8
and ecx, 7
or eax, ecx
mov word [esi + 0xa], ax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov cx, word [0x746710]
mov word [esi + 8], cx
mov edx, dword [esp + 0x34]
push edx
push 0
mov ecx, esi
call fcn.005036a0
mov eax, dword [esp + 0x24]
push eax
push 1
mov ecx, esi
call fcn.005036a0
mov edx, dword [0x7441c8]
mov eax, dword [ebx + 4]
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 8]
push esi
push edx
push eax
push eax
push 0
push 0
call fcn.004aed80
mov ecx, eax
call fcn.004b08d0
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x50]
mov byte [esp + 0x94], 3
call fcn.005e5c20
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 4
mov dword [esp + 0x18], eax
jl 0x4f6941
push 0x8c
call fcn.006fa7e6
add esp, 4
mov dword [esp + 0x48], eax
test eax, eax
mov byte [esp + 0x94], 9
je 0x4f6b7f
push edi
mov ecx, eax
call fcn.00503f70
mov dword [esp + 0x18], eax
jmp 0x4f6b8b
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x18]
mov cx, word [0x7466f4]
push 0x54
mov word [eax + 8], cx
push 0
mov ecx, eax
mov byte [esp + 0x9c], 3
call fcn.005036a0
mov edx, dword [esp + 0x18]
push 0
push 0
push edx
mov ecx, ebx
call fcn.004d14f0
push 2
mov ecx, edi
call fcn.00503690
test eax, eax
lea ecx, [esp + 0x50]
jne 0x4f6c3d
call fcn.005b3190
push str.End_Incu_Script
lea ecx, [esp + 0x4c]
mov byte [esp + 0x98], 0xa
call fcn.005e5a90
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x4c]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0xa0], 0xb
call fcn.00413270
lea ecx, [esp + 0x48]
mov esi, eax
mov byte [esp + 0x94], 0xa
call fcn.005e5c20
test esi, esi
je 0x4f6c30
mov eax, dword [ebx + 4]
mov ecx, dword [0x7a3a00]
push 1
push eax
lea eax, [esp + 0x58]
push eax
call fcn.005d0fc0
push 1
push 2
mov ecx, edi
call fcn.005036a0
jmp 0x4f6ca3
call fcn.005b3190
push str.24_Hour_Script
lea ecx, [esp + 0x28]
mov byte [esp + 0x98], 0xc
call fcn.005e5a90
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x28]
push edx
push eax
mov ecx, esi
mov byte [esp + 0xa0], 0xd
call fcn.00413270
lea ecx, [esp + 0x24]
mov esi, eax
mov byte [esp + 0x94], 0xc
call fcn.005e5c20
test esi, esi
je 0x4f6ca3
mov eax, dword [ebx + 4]
push 1
push eax
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [0x7a3a00]
call fcn.005d0fc0
lea ecx, [esp + 0x50]
mov byte [esp + 0x94], 3
call fcn.005e5c20
push 0
mov ecx, ebx
call fcn.004ef560
lea ecx, [esp + 0x58]
mov byte [esp + 0x94], 2
call fcn.005e5c20
lea ecx, [esp + 0x60]
mov byte [esp + 0x94], 1
call fcn.005e5c20
lea ecx, [esp + 0x68]
mov dword [esp + 0x94], 0xffffffff
call fcn.005e5c20
mov edx, dword [0x7a39fc]
mov ecx, dword [edx + 8]
call fcn.004ae6b0
movzx eax, byte [eax + 0x1a0]
imul eax, dword [0x744178]
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x44]
push edx
mov edx, dword [ebp + 0xc]
lea eax, [eax + eax*2]
shl eax, 3
push eax
push 0
push ecx
mov ecx, dword [esp + 0x50]
push edx
call fcn.004adf50
mov eax, dword [esp + 0x40]
push eax
push 3
mov ecx, edi
call fcn.005036a0
mov ecx, dword [esp + 0x44]
push ecx
push 4
mov ecx, edi
call fcn.005036a0
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc