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

Disassembly:
push 0xffffffffffffffff
push 0x58498e
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6a3b20]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x80]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x74], 0
cmp eax, 3
je 0x419db7
cmp eax, 6
je 0x419db7
xor al, al
jmp 0x419db9
mov al, 1
mov ecx, dword [esp + 0x84]
mov edi, dword [0x5a7d34]
mov byte [ecx], al
mov ecx, dword [esp + 0x8c]
mov eax, 2
cmp dword [esi + 0x18], eax
push 4
sete dl
mov byte [ecx], dl
cmp dword [esi + 0x10], eax
mov eax, dword [esp + 0x8c]
sete dl
push str._REA
mov byte [eax], dl
call edi
add esp, 8
mov dword [esp + 0x80], eax
mov ebp, dword [0x5a7cd0]
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x78], 1
call ebp
lea edx, [esp + 0x20]
push edx
mov ecx, eax
mov byte [esp + 0x78], 2
call dword [0x5a7cd4]
push 0
push 0
lea ecx, [esp + 0x88]
push ecx
mov ecx, eax
mov byte [esp + 0x80], 3
call dword [0x5a7adc]
cmp eax, 0xffffffff
lea ecx, [esp + 0x20]
setne bl
mov byte [esp + 0x74], 2
call dword [0x5a7d90]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x74], 1
call dword [0x5a7cd8]
lea ecx, [esp + 0x80]
mov byte [esp + 0x74], 0
call dword [0x5a7d90]
test bl, bl
je 0x419e86
mov edx, dword [esp + 0x90]
mov byte [edx], 1
mov esi, dword [esi + 0x10]
mov ebx, 1
cmp esi, ebx
jne 0x41a1d2
mov eax, dword [0x5a7c68]
mov dword [esp + 0x80], eax
push 0
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x84]
push edx
mov byte [esp + 0x80], 4
call fcn.0053bd80
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax + 0xc]
add esp, 0xc
cmp ecx, dword [eax + 8]
je 0x41a173
lea edx, [esp + 0x80]
push edx
lea ecx, [esp + 0x40]
call fcn.00404a20
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 8]
lea eax, [ecx + eax*4 + 0x10]
mov dword [esp + 0x40], eax
mov edx, dword [ecx + 0xc]
lea ecx, [ecx + edx*4 + 0x10]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ebx
cmp eax, dword [esp + 0x44]
je 0x41a119
push eax
lea ecx, [esp + 0x18]
call dword [0x5a7cbc]
cmp dword [esp + 0x48], 0
mov byte [esp + 0x74], 6
je 0x41a0f5
lea ecx, [esp + 0x4c]
mov dword [esp + 0x18], 0x270f
call fcn.00402f70
push 0
push 0
push 0
push 0
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x2c]
push eax
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
mov byte [esp + 0x94], 7
call dword [0x5a7cbc]
lea eax, [esp + 0x40]
push eax
call fcn.0041a380
add esp, 0x20
lea ecx, [esp + 0x24]
call dword [0x5a7d90]
mov eax, dword [esp + 0x18]
cmp eax, 2
jne 0x419f97
mov ecx, dword [esp + 0x88]
mov byte [ecx], 1
jmp 0x41a0ca
cmp eax, ebx
jne 0x41a0bb
mov edx, dword [esp + 0x84]
push 4
push str._REA
mov byte [edx], 1
call edi
add esp, 8
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x78], 8
call ebp
lea ecx, [esp + 0x28]
push ecx
mov ecx, eax
mov byte [esp + 0x78], 9
call dword [0x5a7cd4]
push 0
push 0
lea edx, [esp + 0x24]
push edx
mov ecx, eax
mov byte [esp + 0x80], 0xa
call dword [0x5a7adc]
cmp eax, 0xffffffff
lea ecx, [esp + 0x28]
setne bl
mov byte [esp + 0x74], 9
call dword [0x5a7d90]
mov esi, dword [0x5a7cd8]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x74], 8
call esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x74], 7
call dword [0x5a7d90]
test bl, bl
je 0x41a037
mov eax, dword [esp + 0x90]
mov byte [eax], 1
push 2
push 0x5ab704
call edi
add esp, 8
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x38]
mov byte [esp + 0x78], 0xb
call ebp
lea edx, [esp + 0x30]
push edx
mov ecx, eax
mov byte [esp + 0x78], 0xc
call dword [0x5a7cd4]
push 0
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
mov byte [esp + 0x7c], 0xd
call dword [0x5a7ab0]
cmp al, 1
lea ecx, [esp + 0x30]
sete bl
mov byte [esp + 0x74], 0xc
call dword [0x5a7d90]
lea ecx, [esp + 0x34]
mov byte [esp + 0x74], 0xb
call esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x74], 7
call dword [0x5a7d90]
test bl, bl
je 0x41a0ca
mov edx, dword [esp + 0x8c]
mov byte [edx], 1
jmp 0x41a0ca
cmp eax, 5
jne 0x41a0ca
mov eax, dword [esp + 0x90]
mov byte [eax], 1
lea ecx, [esp + 0x54]
mov byte [esp + 0x74], 0xe
call dword [0x5a7c9c]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], 6
call dword [0x5a7d90]
mov dword [esp + 0x48], 0
mov ebx, 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 5
call dword [0x5a7d90]
mov eax, dword [esp + 0x40]
add eax, 4
xor dword [esp + 0x48], ebx
mov dword [esp + 0x40], eax
jne 0x419f06
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
mov byte [esp + 0x74], 4
test ecx, ecx
je 0x41a13f
cmp ecx, 0xffffffff
je 0x41a16c
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x41a16c
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
lea esi, [eax + edx*4 + 0x10]
lea edi, [eax + ecx*4 + 0x10]
mov ebx, eax
cmp edi, esi
je 0x41a162
sub esi, 4
mov ecx, esi
call dword [0x5a7d90]
cmp esi, edi
jne 0x41a153
push ebx
call dword [0x5a7d8c]
add esp, 4
mov eax, dword [esp + 0x80]
mov ecx, dword [eax]
mov byte [esp + 0x74], 0
test ecx, ecx
je 0x41a1a0
cmp ecx, 0xffffffff
je 0x41a34b
or edx, 0xffffffff
lock xadd dword [eax], edx
setne al
test al, al
jne 0x41a34b
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
lea esi, [eax + ecx*4 + 0x10]
lea edi, [eax + edx*4 + 0x10]
mov ebx, eax
cmp edi, esi
je 0x41a1c3
sub esi, 4
mov ecx, esi
call dword [0x5a7d90]
cmp esi, edi
jne 0x41a1b4
push ebx
call dword [0x5a7d8c]
add esp, 4
jmp 0x41a34b
cmp esi, 5
jne 0x41a34b
mov eax, dword [0x5a7c68]
mov dword [esp + 0x88], eax
xor edi, edi
push edi
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x84]
push edx
mov byte [esp + 0x80], 0xf
call fcn.0053bd80
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0xc]
add esp, 0xc
cmp ecx, dword [eax + 8]
je 0x41a33a
lea edx, [esp + 0x88]
push edx
lea ecx, [esp + 0x40]
call fcn.00404a20
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 8]
lea eax, [ecx + eax*4 + 0x10]
mov dword [esp + 0x40], eax
mov edx, dword [ecx + 0xc]
lea ecx, [ecx + edx*4 + 0x10]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ebx
mov esi, dword [0x5a7c9c]
mov bl, 0x11
cmp eax, dword [esp + 0x44]
je 0x41a32c
push eax
lea ecx, [esp + 0x84]
call dword [0x5a7cbc]
mov byte [esp + 0x74], bl
cmp dword [esp + 0x48], edi
je 0x41a304
lea ecx, [esp + 0x4c]
mov dword [esp + 0x8c], 0x270f
call fcn.00402f70
push edi
push edi
push edi
push edi
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0xa0]
push eax
push ecx
lea edx, [esp + 0x9c]
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
mov byte [esp + 0x94], 0x12
call dword [0x5a7cbc]
lea eax, [esp + 0x50]
push eax
call fcn.0041a380
add esp, 0x20
lea ecx, [esp + 0x34]
call dword [0x5a7d90]
cmp dword [esp + 0x8c], 4
jne 0x41a2e7
mov ecx, dword [esp + 0x84]
mov byte [ecx], 1
lea ecx, [esp + 0x54]
mov byte [esp + 0x74], 0x13
call esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], bl
call dword [0x5a7d90]
mov dword [esp + 0x48], edi
lea ecx, [esp + 0x80]
mov byte [esp + 0x74], 0x10
call dword [0x5a7d90]
mov eax, dword [esp + 0x40]
add eax, 4
xor dword [esp + 0x48], 1
mov dword [esp + 0x40], eax
jne 0x41a254
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], 0xf
call fcn.00401250
lea ecx, [esp + 0x88]
mov byte [esp + 0x74], 0
call fcn.00401250
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call dword [0x5a7d90]
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret