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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
movsx eax, byte [esi + 0x20]
push eax
call fcn.00460cb0
mov edi, dword [esp + 0x14]
push eax
push str.shader:__s_n
push edi
call fcn.00401010
push str.source_sha1:_
push edi
call fcn.00401010
lea eax, [esi + 9]
push eax
push edi
call fcn.00462310
push 0x5092e8
push edi
call fcn.00401010
mov eax, dword [esi]
add esp, 0x28
test eax, eax
je 0x405668
push eax
push str.name:__s_n
push edi
call fcn.00401010
add esp, 0xc
mov eax, dword [esi + 4]
test eax, eax
je 0x40567e
push eax
push str.label:__s_n
push edi
call fcn.00401010
add esp, 0xc
cmp byte [esi + 8], 0
mov ecx, str.false
mov eax, str.true
cmove eax, ecx
push eax
push str.internal:__s_n
push edi
call fcn.00401010
mov al, byte [esi + 0x20]
add esp, 0xc
cmp al, 5
je 0x4056b1
cmp al, 0xe
je 0x4056b1
cmp al, 6
je 0x4056b1
cmp al, 7
jne 0x4056fd
test byte [esi + 0x11b], 0x20
mov ecx, 0x5082f5
mov eax, str.__variable_
cmove eax, ecx
push eax
movzx eax, word [esi + 0x100]
push eax
movzx eax, word [esi + 0xfe]
push eax
movzx eax, word [esi + 0xfc]
push eax
push str.workgroup_size:__u___u___u_s_n
push edi
call fcn.00401010
push dword [esi + 0xf0]
push str.shared_size:__u_n
push edi
call fcn.00401010
add esp, 0x24
movsx eax, byte [esi + 0x21]
push eax
movsx eax, byte [esi + 0x20]
push eax
push str.stage:__d_nnext_stage:__d_n
push edi
call fcn.00401010
movzx eax, byte [esi + 0x24]
add esp, 0x10
test eax, eax
je 0x405731
push eax
push str.num_textures
push str._s:__u_n
push edi
call fcn.00401010
add esp, 0x10
movzx eax, byte [esi + 0x25]
test eax, eax
je 0x40574d
push eax
push str.num_ubos
push str._s:__u_n
push edi
call fcn.00401010
add esp, 0x10
movzx eax, byte [esi + 0x26]
test eax, eax
je 0x405769
push eax
push str.num_abos
push str._s:__u_n
push edi
call fcn.00401010
add esp, 0x10
movzx eax, byte [esi + 0x27]
test eax, eax
je 0x405785
push eax
push str.num_ssbos
push str._s:__u_n
push edi
call fcn.00401010
add esp, 0x10
movzx eax, byte [esi + 0x28]
test eax, eax
je 0x4057a1
push eax
push str.num_images
push str._s:__u_n
push edi
call fcn.00401010
add esp, 0x10
push dword [esi + 0x34]
push dword [esi + 0x30]
push str.inputs_read
push edi
call fcn.004052c0
push dword [esi + 0x3c]
push dword [esi + 0x38]
push str.dual_slot_inputs
push edi
call fcn.004052c0
push dword [esi + 0x44]
push dword [esi + 0x40]
push str.outputs_written
push edi
call fcn.004052c0
push dword [esi + 0x4c]
push dword [esi + 0x48]
push str.outputs_read
push edi
call fcn.004052c0
add esp, 0x40
lea eax, [esi + 0x50]
push 3
push eax
push str.system_values_read
push edi
call fcn.00405240
push dword [esi + 0x64]
push dword [esi + 0x60]
push str.per_primitive_inputs
push edi
call fcn.004052c0
push dword [esi + 0x6c]
push dword [esi + 0x68]
push str.per_primitive_outputs
push edi
call fcn.004052c0
push dword [esi + 0x74]
push dword [esi + 0x70]
push str.per_view_outputs
push edi
call fcn.004052c0
movzx eax, word [esi + 0x78]
add esp, 0x40
test ax, ax
je 0x40584c
push eax
push str.inputs_read_16bit
push str._s:_0x_04x_n
push edi
call fcn.00401010
add esp, 0x10
movzx eax, word [esi + 0x7a]
test ax, ax
je 0x405869
push eax
push str.outputs_written_16bit
push str._s:_0x_04x_n
push edi
call fcn.00401010
add esp, 0x10
movzx eax, word [esi + 0x7c]
test ax, ax
je 0x405886
push eax
push str.outputs_read_16bit
push str._s:_0x_04x_n
push edi
call fcn.00401010
add esp, 0x10
movzx eax, word [esi + 0x7e]
test ax, ax
je 0x4058a3
push eax
push str.inputs_read_indirectly_16bit
push str._s:_0x_04x_n
push edi
call fcn.00401010
add esp, 0x10
movzx eax, word [esi + 0x80]
test ax, ax
je 0x4058c3
push eax
push str.outputs_accessed_indirectly_16bit
push str._s:_0x_04x_n
push edi
call fcn.00401010
add esp, 0x10
mov eax, dword [esi + 0x84]
test eax, eax
je 0x4058e1
push eax
push str.patch_inputs_read
push str._s:_0x_08x_n
push edi
call fcn.00401010
add esp, 0x10
mov eax, dword [esi + 0x88]
test eax, eax
je 0x4058ff
push eax
push str.patch_outputs_written
push str._s:_0x_08x_n
push edi
call fcn.00401010
add esp, 0x10
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x40591d
push eax
push str.patch_outputs_read
push str._s:_0x_08x_n
push edi
call fcn.00401010
add esp, 0x10
push dword [esi + 0x94]
push dword [esi + 0x90]
push str.inputs_read_indirectly
push edi
call fcn.004052c0
push dword [esi + 0x9c]
push dword [esi + 0x98]
push str.outputs_accessed_indirectly
push edi
call fcn.004052c0
push dword [esi + 0xa4]
push dword [esi + 0xa0]
push str.patch_inputs_read_indirectly
push edi
call fcn.004052c0
push dword [esi + 0xac]
push dword [esi + 0xa8]
push str.patch_outputs_accessed_indirectly
push edi
call fcn.004052c0
add esp, 0x40
lea eax, [esi + 0xb0]
push 4
push eax
push str.textures_used
push edi
call fcn.00405240
push 4
lea eax, [esi + 0xc0]
push eax
push str.textures_used_by_txf
push edi
call fcn.00405240
push 1
lea eax, [esi + 0xd0]
push eax
push str.samplers_used
push edi
call fcn.00405240
push 2
lea eax, [esi + 0xd4]
push eax
push str.images_used
push edi
call fcn.00405240
add esp, 0x40
lea eax, [esi + 0xdc]
push 2
push eax
push str.image_buffers
push edi
call fcn.00405240
push 2
lea eax, [esi + 0xe4]
push eax
push str.msaa_images
push edi
call fcn.00405240
mov eax, dword [esi + 0xec]
add esp, 0x20
test eax, eax
je 0x405a18
push eax
push str.float_controls_execution_mode
push str._s:_0x_08x_n
push edi
call fcn.00401010
add esp, 0x10
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x405a36
push eax
push str.shared_size
push str._s:__u_n
push edi
call fcn.00401010
add esp, 0x10
mov al, byte [esi + 0x20]
cmp al, 7
je 0x405a41
cmp al, 6
jne 0x405a55
push dword [esi + 0xf4]
push str.task_payload_size:__u_n
push edi
call fcn.00401010
add esp, 0xc
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x405a73
push eax
push str.ray_queries
push str._s:__u_n
push edi
call fcn.00401010
add esp, 0x10
push dword [esi + 0x104]
push str.subgroup_size:__u_n
push edi
call fcn.00401010
add esp, 0xc
cmp byte [esi + 0x109], 0
je 0x405aa3
push str.uses_wide_subgroup_intrinsics
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
mov cl, byte [esi + 0x10a]
test cl, cl
jne 0x405ac5
cmp byte [esi + 0x10b], cl
jne 0x405ac5
cmp byte [esi + 0x10c], cl
jne 0x405ac5
cmp byte [esi + 0x10d], cl
je 0x405aef
movzx eax, byte [esi + 0x10d]
push eax
movzx eax, byte [esi + 0x10c]
push eax
movzx eax, byte [esi + 0x10b]
push eax
movzx eax, cl
push eax
push str.xfb_stride:__u___u___u___u_n
push edi
call fcn.00401010
add esp, 0x18
movzx ecx, word [esi + 0x10e]
test cx, cx
jne 0x405b16
cmp word [esi + 0x110], cx
jne 0x405b16
cmp word [esi + 0x112], cx
jne 0x405b16
cmp word [esi + 0x114], cx
je 0x405b3d
movzx eax, word [esi + 0x114]
push eax
movzx eax, word [esi + 0x112]
push eax
movzx eax, word [esi + 0x110]
push eax
push ecx
push str.inlinable_uniform_dw_offsets:__u___u___u___u_n
push edi
call fcn.00401010
add esp, 0x18
movzx eax, byte [esi + 0x116]
and eax, 0xf
je 0x405b5d
push eax
push str.num_inlinable_uniforms
push str._s:__u_n
push edi
call fcn.00401010
add esp, 0x10
movzx eax, byte [esi + 0x116]
shr eax, 4
test eax, eax
je 0x405b7f
push eax
push str.clip_distance_array_size
push str._s:__u_n
push edi
call fcn.00401010
add esp, 0x10
movzx eax, byte [esi + 0x117]
and eax, 0xf
je 0x405b9f
push eax
push str.cull_distance_array_size
push str._s:__u_n
push edi
call fcn.00401010
add esp, 0x10
test byte [esi + 0x117], 0x10
je 0x405bbb
push str.uses_texture_gather
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
test byte [esi + 0x117], 0x20
je 0x405bd7
push str.uses_resource_info_query
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
test byte [esi + 0x117], 0x40
je 0x405bf3
push str.uses_fddx_fddy
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
cmp byte [esi + 0x117], 0
jge 0x405c0f
push str.divergence_analysis_run
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
mov al, byte [esi + 0x118]
test al, al
je 0x405c30
movzx eax, al
push eax
push str.bit_sizes_float
push str._s:_0x_02x_n
push edi
call fcn.00401010
add esp, 0x10
mov al, byte [esi + 0x119]
test al, al
je 0x405c51
movzx eax, al
push eax
push str.bit_sizes_int
push str._s:_0x_02x_n
push edi
call fcn.00401010
add esp, 0x10
test byte [esi + 0x11a], 1
je 0x405c6d
push str.first_ubo_is_default_ubo
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
test byte [esi + 0x11a], 2
je 0x405c89
push str.separate_shader
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
test byte [esi + 0x11a], 4
je 0x405ca5
push str.has_transform_feedback_varyings
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
test byte [esi + 0x11a], 8
je 0x405cc1
push str.flrp_lowered
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
test byte [esi + 0x11a], 0x10
je 0x405cdd
push str.io_lowered
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
test byte [esi + 0x11a], 0x40
je 0x405cf9
push str.writes_memory
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
movsx ecx, byte [esi + 0x20]
cmp ecx, 0xe
ja case.0x405d0d.6
movzx eax, byte [ecx + 0x40630c]
jmp dword [eax*4 + 0x4062f0]
push dword [esi + 0x124]
push dword [esi + 0x120]
push str.double_inputs
push edi
call fcn.004052c0
movzx eax, byte [esi + 0x128]
add esp, 0x10
and eax, 0xf
je 0x405d4e
push eax
push str.blit_sgprs_amd
push str._s:__u_n
push edi
call fcn.00401010
add esp, 0x10
test byte [esi + 0x128], 0x10
je 0x405d6a
push str.window_space_position
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
test byte [esi + 0x128], 0x20
je 0x4062eb
push str.needs_edge_flag
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
pop edi
pop esi
ret
push dword [esi + 0x120]
push str.primitive_mode:__u_n
push edi
call fcn.00401010
movzx eax, byte [esi + 0x124]
push eax
push str.tcs_vertices_out:__u_n
push edi
call fcn.00401010
mov eax, dword [esi + 0x128]
and eax, 3
push eax
push str.spacing:__u_n
push edi
call fcn.00401010
add esp, 0x24
test byte [esi + 0x12c], 1
je 0x405de5
push 0x509a28
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
test byte [esi + 0x12c], 2
je 0x405e01
push str.point_mode
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
push dword [esi + 0x134]
push dword [esi + 0x130]
push str.tcs_cross_invocation_inputs_read
push edi
call fcn.004052c0
push dword [esi + 0x13c]
push dword [esi + 0x138]
push str.tcs_cross_invocation_outputs_read
push edi
call fcn.004052c0
add esp, 0x20
pop edi
pop esi
ret
push dword [esi + 0x120]
call fcn.00401fc0
push eax
push str.output_primitive:__s_n
push edi
call fcn.00401010
push dword [esi + 0x124]
call fcn.00401fc0
push eax
push str.input_primitive:__s_n
push edi
call fcn.00401010
movzx eax, word [esi + 0x128]
push eax
push str.vertices_out:__u_n
push edi
call fcn.00401010
movzx eax, byte [esi + 0x12a]
push eax
push str.invocations:__u_n
push edi
call fcn.00401010
movzx eax, byte [esi + 0x12b]
and eax, 7
push eax
push str.vertices_in:__u_n
push edi
call fcn.00401010
add esp, 0x44
test byte [esi + 0x12b], 8
je 0x405ebe
push str.uses_end_primitive
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
movzx eax, byte [esi + 0x12b]
shr eax, 4
push eax
push str.active_stream_mask:_0x_02x_n
push edi
call fcn.00401010
add esp, 0xc
pop edi
pop esi
ret
test byte [esi + 0x120], 1
je 0x405ef6
push str.uses_discard
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
test byte [esi + 0x120], 2
je 0x405f12
push str.uses_demote
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
test byte [esi + 0x120], 4
je 0x405f2e
push str.uses_fbfetch_output
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
test byte [esi + 0x120], 0x10
je 0x405f4a
push str.color_is_dual_source
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
test byte [esi + 0x120], 0x20
je 0x405f66
push str.require_full_quads
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
test byte [esi + 0x120], 0x40
je 0x405f82
push str.needs_quad_helper_invocations
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
cmp byte [esi + 0x120], 0
jge 0x405f9e
push str.uses_sample_qualifier
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
test byte [esi + 0x121], 1
je 0x405fba
push str.uses_sample_shading
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
test byte [esi + 0x121], 2
je 0x405fd6
push str.early_fragment_tests
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
test byte [esi + 0x121], 4
je 0x405ff2
push str.inner_coverage
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
test byte [esi + 0x121], 8
je 0x40600e
push str.post_depth_coverage
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
test byte [esi + 0x121], 0x10
je 0x40602a
push str.pixel_center_integer
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
test byte [esi + 0x121], 0x20
je 0x406046
push str.origin_upper_left
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
test byte [esi + 0x121], 0x40
je 0x406062
push str.pixel_interlock_ordered
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
cmp byte [esi + 0x121], 0
jge 0x40607e
push str.pixel_interlock_unordered
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
test byte [esi + 0x122], 1
je 0x40609a
push str.sample_interlock_ordered
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
test byte [esi + 0x122], 2
je 0x4060b6
push str.sample_interlock_unordered
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
test byte [esi + 0x122], 4
je 0x4060d2
push str.untyped_color_outputs
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
mov eax, dword [esi + 0x124]
shl eax, 0x1d
sar eax, 0x1d
test eax, eax
je 0x4060f6
push eax
push str.depth_layout
push str._s:__u_n
push edi
call fcn.00401010
add esp, 0x10
mov eax, dword [esi + 0x124]
shr eax, 3
and eax, 7
je 0x406119
push eax
call fcn.00460d80
push eax
push str.color0_interp:__s_n
push edi
call fcn.00401010
add esp, 0x10
test byte [esi + 0x128], 1
je 0x406135
push str.color0_sample
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
test byte [esi + 0x128], 2
je 0x406151
push str.color0_centroid
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
mov eax, dword [esi + 0x12c]
and eax, 7
je 0x406171
push eax
call fcn.00460d80
push eax
push str.color1_interp:__s_n
push edi
call fcn.00401010
add esp, 0x10
test byte [esi + 0x130], 1
je 0x40618d
push str.color1_sample
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
test byte [esi + 0x130], 2
je 0x4061a9
push str.color1_centroid
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
mov eax, dword [esi + 0x134]
test eax, eax
je 0x4062eb
push eax
push str.advanced_blend_modes
push str._s:_0x_08x_n
push edi
call fcn.00401010
add esp, 0x10
pop edi
pop esi
ret
movzx ecx, word [esi + 0x120]
test cx, cx
jne 0x4061ec
cmp word [esi + 0x122], cx
jne 0x4061ec
cmp word [esi + 0x124], cx
je 0x40620b
movzx eax, word [esi + 0x124]
push eax
movzx eax, word [esi + 0x122]
push eax
push ecx
push str.workgroup_size_hint:__u___u___u_n
push edi
call fcn.00401010
add esp, 0x14
movzx eax, byte [esi + 0x126]
and eax, 7
je 0x40622b
push eax
push str.user_data_components_amd
push str._s:__u_n
push edi
call fcn.00401010
add esp, 0x10
mov eax, dword [esi + 0x128]
shl eax, 0x1e
sar eax, 0x1e
test eax, eax
je 0x40624f
push eax
push str.derivative_group
push str._s:__u_n
push edi
call fcn.00401010
add esp, 0x10
push dword [esi + 0x130]
push str.ptr_size:__u_n
push edi
call fcn.00401010
add esp, 0xc
pop edi
pop esi
ret
push dword [esi + 0x124]
push dword [esi + 0x120]
push str.ms_cross_invocation_output_access
push edi
call fcn.004052c0
movzx eax, word [esi + 0x134]
push eax
push str.max_vertices_out:__u_n
push edi
call fcn.00401010
movzx eax, word [esi + 0x136]
push eax
push str.max_primitives_out:__u_n
push edi
call fcn.00401010
push dword [esi + 0x138]
call fcn.00401fc0
push eax
push str.primitive_type:__s_n
push edi
call fcn.00401010
add esp, 0x38
cmp byte [esi + 0x13c], 0
je 0x4062eb
push 0x509e0c
push str._s:_true_n
push edi
call fcn.00401010
add esp, 0xc
pop edi
pop esi
ret
push ecx
push str.Unhandled_stage__d_n
push edi
call fcn.00401010
add esp, 0xc
pop edi
pop esi
ret