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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x79a898
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x54
mov ecx, dword [eax + 8]
push ebx
push ebp
push esi
cmp ecx, 2
push edi
jne 0x5129fc
mov ecx, dword [esp + 0x80]
mov eax, dword [eax + 4]
xor edi, edi
cmp ecx, edi
mov ecx, dword [eax]
je 0x512747
mov edx, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x24], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x1c], edx
cmp dword [ecx + 8], 2
jne 0x512328
mov ecx, dword [ecx + 4]
lea edx, [esp + 0x78]
push edx
mov edx, dword [eax + 8]
mov esi, dword [ecx]
mov ebp, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x7c], edi
mov edi, dword [esp + 0x80]
push edi
push ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 0xc]
push ebx
push ebp
push esi
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
call fcn.004fa780
test eax, eax
je 0x5129fc
push ebx
push esi
call fcn.00513ef0
cmp dword [edi], eax
jg 0x5129fc
push ebx
push esi
call fcn.00513f10
cmp dword [edi], eax
jl 0x5129fc
mov esi, dword [esp + 0x24]
push esi
push ebp
call fcn.00513ef0
cmp dword [edi + 4], eax
jg 0x5129fc
push esi
push ebp
call fcn.00513f10
cmp dword [edi + 4], eax
jl 0x5129fc
mov eax, 1
jmp 0x5129fe
mov ebx, 0x7cb8e8
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
lea eax, [esp + 0x3c]
lea edx, [esp + 0x50]
push eax
push edx
push ecx
mov byte [esp + 0x78], 2
call fcn.00512aa0
lea eax, [esp + 0x28]
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x54]
push ecx
push edx
call fcn.00501c90
mov eax, dword [esp + 0x3c]
add esp, 0xc
xor esi, esi
cmp eax, edi
jle 0x5123e9
mov eax, dword [esp + 0x2c]
push 0x40240000
push edi
mov ebp, dword [eax + esi*8 + 4]
mov ebx, dword [eax + esi*8]
mov eax, dword [esp + 0x24]
mov ecx, ebp
mov edx, ebx
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
call fcn.004faf60
test eax, eax
jne 0x5124ae
mov eax, dword [esp + 0x30]
inc esi
cmp esi, eax
jl 0x5123a3
mov ebx, 0x7cb8e8
xor esi, esi
dec eax
test eax, eax
jle 0x512573
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + esi*8]
mov edx, dword [eax + esi*8 + 4]
mov ebx, dword [eax + esi*8 + 8]
mov ebp, dword [eax + esi*8 + 0xc]
lea eax, [esp + 0x7c]
mov dword [esp + 0x10], ecx
push eax
mov eax, dword [esp + 0x28]
push edi
push ebp
push ebx
push edx
push ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push eax
push ecx
mov dword [esp + 0xa4], 0
call fcn.004fa780
test eax, eax
je 0x51255e
mov edx, dword [esp + 0x10]
push ebx
push edx
call fcn.00513ef0
cmp dword [edi], eax
jg 0x51248b
mov eax, dword [esp + 0x10]
push ebx
push eax
call fcn.00513f10
cmp dword [edi], eax
jl 0x51248b
mov ecx, dword [esp + 0x14]
push ebp
push ecx
call fcn.00513ef0
cmp dword [edi + 4], eax
jg 0x51248b
mov edx, dword [esp + 0x14]
push ebp
push edx
call fcn.00513f10
cmp dword [edi + 4], eax
jge 0x5125e8
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push ebp
push ebx
push eax
push ecx
call fcn.004fb030
fcom qword [0x7ca988]
fnstsw ax
test ah, 1
jne 0x512507
fadd qword [0x7ca990]
jmp 0x51250d
mov eax, dword [esp + 0x7c]
mov esi, 0x7cb8e8
mov dword [esp + 0x28], esi
mov dword [eax], ebx
mov dword [eax + 4], ebp
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x6c], 3
cmp eax, edi
je 0x5124d6
push eax
call fcn.007604d0
add esp, 4
mov dword [esp + 0x3c], esi
mov eax, dword [esp + 0x40]
mov byte [esp + 0x6c], 4
cmp eax, edi
je 0x5124f0
push eax
call fcn.007604d0
add esp, 4
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x54]
mov dword [esp + 0x6c], 5
cmp eax, edi
jmp 0x512a86
fsub qword [0x7ca990]
call fcn.007496f4
cmp eax, 0x2710
jl 0x51265d
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 4]
push edx
mov edx, dword [edi]
push eax
push ecx
push edx
call fcn.004fb030
fcom qword [0x7ca988]
fnstsw ax
test ah, 1
jne 0x512548
fadd qword [0x7ca990]
jmp 0x51254e
fsub qword [0x7ca990]
call fcn.007496f4
cmp eax, 0x2710
jl 0x5126d2
mov eax, dword [esp + 0x30]
inc esi
dec eax
cmp esi, eax
jl 0x5123f8
xor edi, edi
mov ebx, 0x7cb8e8
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x58]
call fcn.005fc3f0
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x44]
call fcn.005fc3f0
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x30]
call fcn.005fc3f0
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x6c], 0xf
cmp eax, edi
je 0x5125b1
push eax
call fcn.007604d0
add esp, 4
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x40]
mov byte [esp + 0x6c], 0x10
cmp eax, edi
je 0x5125cb
push eax
call fcn.007604d0
add esp, 4
mov dword [esp + 0x50], ebx
mov eax, dword [esp + 0x54]
mov dword [esp + 0x6c], 0x11
cmp eax, edi
je 0x5129fc
jmp 0x5129f3
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x58]
call fcn.005fc3f0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x44]
call fcn.005fc3f0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x30]
call fcn.005fc3f0
mov esi, 0x7cb8e8
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x6c], 6
test eax, eax
je 0x51262e
push eax
call fcn.007604d0
add esp, 4
mov dword [esp + 0x3c], esi
mov eax, dword [esp + 0x40]
mov byte [esp + 0x6c], 7
test eax, eax
je 0x512648
push eax
call fcn.007604d0
add esp, 4
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x54]
mov dword [esp + 0x6c], 8
jmp 0x512a84
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x58]
call fcn.005fc3f0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x44]
call fcn.005fc3f0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x30]
call fcn.005fc3f0
mov esi, 0x7cb8e8
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x6c], 9
test eax, eax
je 0x5126a3
push eax
call fcn.007604d0
add esp, 4
mov dword [esp + 0x3c], esi
mov eax, dword [esp + 0x40]
mov byte [esp + 0x6c], 0xa
test eax, eax
je 0x5126bd
push eax
call fcn.007604d0
add esp, 4
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x54]
mov dword [esp + 0x6c], 0xb
jmp 0x512a84
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x58]
call fcn.005fc3f0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x44]
call fcn.005fc3f0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x30]
call fcn.005fc3f0
mov esi, 0x7cb8e8
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x6c], 0xc
test eax, eax
je 0x512718
push eax
call fcn.007604d0
add esp, 4
mov dword [esp + 0x3c], esi
mov eax, dword [esp + 0x40]
mov byte [esp + 0x6c], 0xd
test eax, eax
je 0x512732
push eax
call fcn.007604d0
add esp, 4
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x54]
mov dword [esp + 0x6c], 0xe
jmp 0x512a84
mov edx, dword [eax + 4]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x24], edx
cmp dword [ecx + 8], 2
jne 0x5127fd
mov ecx, dword [ecx + 4]
lea edx, [esp + 0x78]
push edx
mov edx, dword [eax + 8]
mov esi, dword [ecx]
mov ebp, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x7c], edi
mov edi, dword [esp + 0x80]
push edi
push ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 0xc]
push ebx
push ebp
push esi
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
call fcn.004fa780
test eax, eax
je 0x5129fc
push ebx
push esi
call fcn.00513ef0
cmp dword [edi], eax
jg 0x5129fc
push ebx
push esi
call fcn.00513f10
cmp dword [edi], eax
jl 0x5129fc
mov esi, dword [esp + 0x24]
push esi
push ebp
call fcn.00513ef0
cmp dword [edi + 4], eax
jg 0x5129fc
push esi
push ebp
call fcn.00513f10
cmp dword [edi + 4], eax
jl 0x5129fc
mov eax, 1
jmp 0x5129fe
mov dword [esp + 0x28], method.CCommandLineInfo.virtual_0
mov dword [esp + 0x2c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
lea eax, [esp + 0x28]
mov dword [esp + 0x6c], 0x12
push eax
push ecx
call fcn.00514100
xor esi, esi
mov eax, dword [esp + 0x30]
cmp eax, edi
jle 0x512873
mov eax, dword [esp + 0x2c]
push 0x40240000
push edi
mov ebp, dword [eax + esi*8 + 4]
mov ebx, dword [eax + esi*8]
mov eax, dword [esp + 0x2c]
mov ecx, ebp
mov edx, ebx
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
call fcn.004faf60
test eax, eax
jne 0x512944
mov eax, dword [esp + 0x30]
inc esi
cmp esi, eax
jl 0x512832
xor esi, esi
dec eax
test eax, eax
jle 0x5129cf
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + esi*8]
mov edx, dword [eax + esi*8 + 4]
mov ebx, dword [eax + esi*8 + 8]
mov ebp, dword [eax + esi*8 + 0xc]
lea eax, [esp + 0x7c]
mov dword [esp + 0x10], ecx
push eax
mov eax, dword [esp + 0x20]
push edi
push ebp
push ebx
push edx
push ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
push ecx
mov dword [esp + 0xa4], 0
call fcn.004fa780
test eax, eax
je 0x5129bf
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x512a13
mov edx, dword [esp + 0x10]
push ebx
push edx
call fcn.00513ef0
cmp dword [edi], eax
jg 0x512921
mov eax, dword [esp + 0x10]
push ebx
push eax
call fcn.00513f10
cmp dword [edi], eax
jl 0x512921
mov ecx, dword [esp + 0x14]
push ebp
push ecx
call fcn.00513ef0
cmp dword [edi + 4], eax
jg 0x512921
mov edx, dword [esp + 0x14]
push ebp
push edx
call fcn.00513f10
cmp dword [edi + 4], eax
jge 0x512a25
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push ebp
push ebx
push eax
push ecx
call fcn.004fb030
fcom qword [0x7ca988]
fnstsw ax
test ah, 1
jne 0x512968
fadd qword [0x7ca990]
jmp 0x51296e
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x28], 0x7cb8e8
mov dword [eax], ebx
mov dword [eax + 4], ebp
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x6c], 0x13
cmp eax, edi
jmp 0x512a86
fsub qword [0x7ca990]
call fcn.007496f4
cmp eax, 0x2710
jl 0x512a44
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 4]
push edx
mov edx, dword [edi]
push eax
push ecx
push edx
call fcn.004fb030
fcom qword [0x7ca988]
fnstsw ax
test ah, 1
jne 0x5129a9
fadd qword [0x7ca990]
jmp 0x5129af
fsub qword [0x7ca990]
call fcn.007496f4
cmp eax, 0x2710
jl 0x512a63
mov eax, dword [esp + 0x30]
inc esi
dec eax
cmp esi, eax
jl 0x512882
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x30]
call fcn.005fc3f0
mov dword [esp + 0x28], 0x7cb8e8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x6c], 0x18
cmp eax, edi
je 0x5129fc
push eax
call fcn.007604d0
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 0x10
mov dword [esp + 0x28], method.CCommandLineInfo.virtual_0
mov dword [esp + 0x6c], 0x14
jmp 0x512a80
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x30]
call fcn.005fc3f0
mov dword [esp + 0x28], 0x7cb8e8
mov dword [esp + 0x6c], 0x15
jmp 0x512a80
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x30]
call fcn.005fc3f0
mov dword [esp + 0x28], 0x7cb8e8
mov dword [esp + 0x6c], 0x16
jmp 0x512a80
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x30]
call fcn.005fc3f0
mov dword [esp + 0x28], 0x7cb8e8
mov dword [esp + 0x6c], 0x17
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x512a91
push eax
call fcn.007604d0
add esp, 4
mov eax, 1
jmp 0x5129fe