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

Disassembly:
push 0xffffffffffffffff
push 0x52bdb5
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x56fcac]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56fcac]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
lea eax, [esp + 0xb4]
mov esi, ecx
push eax
mov dword [esp + 0x20], esi
call fcn.00440f90
xor ebx, ebx
mov ebp, 7
mov dword [esp + 0x114], ebp
mov dword [esp + 0x110], ebx
mov word [esp + 0x100], bx
mov byte [esp + 0x118], bl
mov dword [esp + 0x128], ebx
push 5
push str.Seeds
lea ecx, [esp + 0x68]
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], bx
call fcn.00402af0
lea ecx, [esp + 0x60]
lea edi, [esp + 0xb4]
mov byte [esp + 0x128], 1
call fcn.0040e050
mov edi, eax
mov byte [esp + 0x128], bl
cmp dword [esp + 0x78], 8
mov dword [esp + 0x40], edi
jb 0x41fe62
mov ecx, dword [esp + 0x64]
push ecx
call fcn.004aaa59
add esp, 4
cmp edi, ebx
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
jne 0x41fe99
mov dword [esp + 0x128], 0xffffffff
cmp dword [esp + 0x114], 8
jb 0x420206
mov edx, dword [esp + 0x100]
push edx
jmp 0x4201fe
mov dword [esp + 0x14], ebx
lea ecx, [ecx]
mov ecx, dword [esi + 0x20]
cmp ecx, ebx
je 0x4201d2
mov eax, dword [esi + 0x24]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x14], eax
jae 0x4201d2
push 4
push str.Seed
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
call fcn.00402af0
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x12c], 2
call fcn.0040e110
mov byte [esp + 0x128], bl
cmp dword [esp + 0x38], 8
mov edi, eax
jb 0x41ff10
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004aaa59
add esp, 4
cmp edi, ebx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
je 0x4201c4
push 6
push str.gameId
lea ecx, [esp + 0x84]
mov dword [esp + 0x9c], ebp
mov dword [esp + 0x98], ebx
mov word [esp + 0x88], bx
call fcn.00402af0
lea edx, [esp + 0xb4]
push edx
lea ecx, [esp + 0x80]
mov byte [esp + 0x12c], 3
call fcn.0040e110
mov byte [esp + 0x128], bl
cmp dword [esp + 0x94], 8
mov dword [esp + 0x18], eax
jb 0x41ff8f
mov eax, dword [esp + 0x80]
push eax
call fcn.004aaa59
add esp, 4
push 6
push str.resume
lea ecx, [esp + 0xa0]
mov dword [esp + 0x9c], ebp
mov dword [esp + 0x98], ebx
mov word [esp + 0x88], bx
mov dword [esp + 0xb8], ebp
mov dword [esp + 0xb4], ebx
mov word [esp + 0xa4], bx
call fcn.00402af0
lea ecx, [esp + 0xb4]
push ecx
lea ecx, [esp + 0x9c]
mov byte [esp + 0x12c], 4
call fcn.0040e110
mov edi, eax
mov byte [esp + 0x128], bl
cmp dword [esp + 0xb0], 8
mov dword [esp + 0x3c], edi
jb 0x420011
mov edx, dword [esp + 0x9c]
push edx
call fcn.004aaa59
add esp, 4
cmp dword [esp + 0x18], ebx
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], bx
je 0x4201c4
cmp edi, ebx
je 0x4201c4
mov ecx, dword [esi + 0x20]
cmp ecx, ebx
je 0x42004e
mov eax, dword [esi + 0x24]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x14], eax
jb 0x420053
call fcn.004ec14b
mov ebp, dword [esp + 0x14]
mov eax, dword [esi + 0x20]
add ebp, ebp
add ebp, ebp
add eax, ebp
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
push eax
push ecx
lea esi, [esp + 0x4c]
call fcn.004047c0
add esp, 8
mov esi, 8
mov byte [esp + 0x128], 5
cmp dword [eax + 0x18], esi
jb 0x42008d
mov edx, dword [eax + 4]
jmp 0x420090
lea edx, [eax + 4]
mov eax, edx
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4200a6
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.00402af0
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x20]
mov byte [esp + 0x128], 6
call fcn.0040e440
cmp dword [esp + 0x38], esi
jb 0x4200e8
mov eax, dword [esp + 0x24]
push eax
call fcn.004aaa59
add esp, 4
mov byte [esp + 0x128], bl
cmp dword [esp + 0x5c], esi
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
jb 0x420113
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004aaa59
add esp, 4
mov edi, dword [esp + 0x1c]
mov ecx, dword [edi + 0x20]
cmp ecx, ebx
je 0x42012c
mov eax, dword [edi + 0x24]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x14], eax
jb 0x420131
call fcn.004ec14b
mov eax, dword [edi + 0x20]
add eax, ebp
mov eax, dword [eax]
add eax, 0x10
cmp dword [eax + 0x18], esi
jb 0x420145
mov edx, dword [eax + 4]
jmp 0x420148
lea edx, [eax + 4]
mov eax, edx
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x420160
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x4c]
call fcn.00402af0
mov edi, dword [esp + 0x3c]
lea ecx, [esp + 0x44]
mov byte [esp + 0x128], 7
call fcn.0040e440
mov byte [esp + 0x128], bl
cmp dword [esp + 0x5c], 8
jb 0x4201aa
mov edx, dword [esp + 0x48]
push edx
call fcn.004aaa59
add esp, 4
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
mov ebp, 7
add dword [esp + 0x14], 1
mov edi, dword [esp + 0x40]
jmp 0x41fea0
lea ecx, [esi + 0x2c]
lea edx, [esp + 0xb4]
call fcn.0040e5b0
mov dword [esp + 0x128], 0xffffffff
cmp dword [esp + 0x114], 8
jb 0x420206
mov eax, dword [esp + 0x100]
push eax
call fcn.004aaa59
add esp, 4
mov eax, dword [esp + 0xe8]
cmp eax, 0x574ea8
mov dword [esp + 0xb4], vtable.TiXmlDocument.0
mov word [esp + 0x100], bx
mov dword [esp + 0x110], ebx
mov dword [esp + 0x114], ebp
je 0x42023e
push eax
call fcn.004aaa63
add esp, 4
lea ecx, [esp + 0xb4]
call fcn.0043ffc0
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004ead41
add esp, 0x118
ret